Package docking.widgets.filter
Class ContainsTextFilter
java.lang.Object
docking.widgets.filter.AbstractPatternTextFilter
docking.widgets.filter.MatchesPatternTextFilter
docking.widgets.filter.ContainsTextFilter
- All Implemented Interfaces:
TextFilter
A filter that will pass text when it contains the filter text.
-
Field Summary
Fields inherited from class docking.widgets.filter.MatchesPatternTextFilter
allowGlobbing, caseSensitiveFields inherited from class docking.widgets.filter.AbstractPatternTextFilter
filterPattern, filterText -
Constructor Summary
ConstructorsConstructorDescriptionContainsTextFilter(String filterText, boolean caseSensitive, boolean allowGlobbing) -
Method Summary
Modifier and TypeMethodDescriptionprotected PatternSubclasses must create thePatternthat will be used by this class when filtering.booleanisSubFilterOf(TextFilter parentFilter) Returns true if this filter is a more specific filter of the given filter.Methods inherited from class docking.widgets.filter.MatchesPatternTextFilter
equals, hashCode, matches, parentIsGlobEscapeMethods inherited from class docking.widgets.filter.AbstractPatternTextFilter
getFilterText, matches, toString
-
Constructor Details
-
ContainsTextFilter
-
-
Method Details
-
createPattern
Description copied from class:AbstractPatternTextFilterSubclasses must create thePatternthat will be used by this class when filtering.- Specified by:
createPatternin classAbstractPatternTextFilter- Returns:
- the pattern
-
isSubFilterOf
Description copied from interface:TextFilterReturns true if this filter is a more specific filter of the given filter. This is specific to the implementation. Some filters cannot be sub-filters of another filter, such as the 'matches exactly' filter. Contrastingly, a 'starts with' filter can have a sub-filter; for example, for a 'starts with' filter, 'cat' is a sub-filter of 'ca', as 'cat' starts with 'ca'.- Parameters:
parentFilter- the potential parent filter- Returns:
- true if this filter is a more specific filter of the given filter.
-