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.Stringtext
-
Constructor Summary
Constructors Constructor Description XViewerPatternFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisLeafMatch(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object element)Check if the current (leaf) element is a match with the filter text.voidsetFilterText(java.lang.String text)voidsetPattern(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:PatternFilterThe pattern string for which this filter should select elements in the viewer.- Overrides:
setPatternin classPatternFilter
-
isLeafMatch
public boolean isLeafMatch(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object element)Description copied from class:PatternFilterCheck 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:
isLeafMatchin 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
-
-