Package docking.widgets.filter
Class MatchesPatternTextFilter
java.lang.Object
docking.widgets.filter.AbstractPatternTextFilter
docking.widgets.filter.MatchesPatternTextFilter
- All Implemented Interfaces:
TextFilter
- Direct Known Subclasses:
ContainsTextFilter
,MatchesExactlyTextFilter
,StartsWithTextFilter
A text filter that uses a pattern and performs a 'matches' using that pattern.
-
Field Summary
FieldsFields inherited from class docking.widgets.filter.AbstractPatternTextFilter
filterPattern, filterText
-
Constructor Summary
ConstructorsConstructorDescriptionMatchesPatternTextFilter
(String filterText, boolean caseSensitive, boolean allowGlobbing) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
Subclasses implement this method for their usage of the given pattern (find vs.protected boolean
Methods inherited from class docking.widgets.filter.AbstractPatternTextFilter
createPattern, getFilterText, matches, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface docking.widgets.filter.TextFilter
isSubFilterOf
-
Field Details
-
caseSensitive
protected boolean caseSensitive -
allowGlobbing
protected boolean allowGlobbing
-
-
Constructor Details
-
MatchesPatternTextFilter
-
-
Method Details
-
parentIsGlobEscape
-
matches
Description copied from class:AbstractPatternTextFilter
Subclasses implement this method for their usage of the given pattern (find vs. matches)- Specified by:
matches
in classAbstractPatternTextFilter
- Parameters:
text
- the text to check against the patternpattern
- the pattern used to match the text- Returns:
- true if there is a match
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractPatternTextFilter
-
equals
- Overrides:
equals
in classAbstractPatternTextFilter
-