Class XViewerPatternFilter
- java.lang.Object
-
- org.eclipse.jface.viewers.ViewerFilter
-
- org.eclipse.nebula.widgets.xviewer.util.internal.PatternFilter
-
- org.eclipse.nebula.widgets.xviewer.util.internal.XViewerPatternFilter
-
public class XViewerPatternFilter extends PatternFilter
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
text
-
Constructor Summary
Constructors Constructor Description XViewerPatternFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLeafMatch(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object element)
Check if the current (leaf) element is a match with the filter text.void
setFilterText(java.lang.String text)
void
setPattern(java.lang.String patternString)
The pattern string for which this filter should select elements in the viewer.-
Methods inherited from class org.eclipse.nebula.widgets.xviewer.util.internal.PatternFilter
clearCaches, filter, isElementSelectable, isElementVisible, isParentMatch, select, setIncludeLeadingWildcard, setUseCache, wordMatches
-
-
-
-
Method Detail
-
setFilterText
public void setFilterText(java.lang.String text)
-
setPattern
public void setPattern(java.lang.String patternString)
Description copied from class:PatternFilter
The pattern string for which this filter should select elements in the viewer.- Overrides:
setPattern
in classPatternFilter
-
isLeafMatch
public boolean isLeafMatch(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object element)
Description copied from class:PatternFilter
Check if the current (leaf) element is a match with the filter text. The default behavior checks that the label of the element is a match. Subclasses should override this method.- Overrides:
isLeafMatch
in classPatternFilter
- Parameters:
viewer
- the viewer that contains the elementelement
- the tree element to check- Returns:
- true if the given element's label matches the filter text
-
-