Class DtTableViewFilter
- java.lang.Object
-
- org.eclipse.jface.viewers.ViewerFilter
-
- com._1c.g5.v8.dt.ui.aef.swt.views.DtTableViewFilter
-
public class DtTableViewFilter extends ViewerFilter
The viewer filter forDtTableView
.
-
-
Constructor Summary
Constructors Constructor Description DtTableViewFilter(String searchPatternText)
Creates filter that is able to filter types list by English and Russian names using symbols '?' and '*' as placeholders.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Matcher
createMatchers(ItemViewModel item)
Returns matcher that can be used for applying regular expression with early specified pattern to text ofitem
.boolean
select(Viewer viewer, Object parentElement, Object element)
-
Methods inherited from class org.eclipse.jface.viewers.ViewerFilter
filter, filter, isFilterProperty
-
-
-
-
Constructor Detail
-
DtTableViewFilter
public DtTableViewFilter(String searchPatternText)
Creates filter that is able to filter types list by English and Russian names using symbols '?' and '*' as placeholders. Case insensitive. The pattern is matched as a substring.- Parameters:
searchPatternText
- Pattern for matching. It can contain a special symbols ('?' or '*').
-
-
Method Detail
-
select
public boolean select(Viewer viewer, Object parentElement, Object element)
- Specified by:
select
in classViewerFilter
-
createMatchers
public Matcher createMatchers(ItemViewModel item)
Returns matcher that can be used for applying regular expression with early specified pattern to text ofitem
. The pattern to be applied was set through constructor.- Parameters:
item
- The item whose text should be used to searching for occurrences of pattern.- Returns:
- The matcher prepared to invoking method
find()
or etc.
-
-