Package docking.widgets.filter
Class AbstractPatternTextFilter
java.lang.Object
docking.widgets.filter.AbstractPatternTextFilter
- All Implemented Interfaces:
TextFilter
- Direct Known Subclasses:
FindsPatternTextFilter
,MatchesPatternTextFilter
-
Field Details
-
filterText
-
filterPattern
-
-
Constructor Details
-
AbstractPatternTextFilter
-
-
Method Details
-
createPattern
Subclasses must create thePattern
that will be used by this class when filtering.- Returns:
- the pattern
-
matches
Subclasses implement this method for their usage of the given pattern (find vs. matches)- Parameters:
text
- the text to check against the patternpattern
- the pattern used to match the text- Returns:
- true if there is a match
-
getFilterText
- Specified by:
getFilterText
in interfaceTextFilter
-
matches
- Specified by:
matches
in interfaceTextFilter
-
hashCode
public int hashCode() -
equals
-
toString
-