AbstractFilter for String fields.
Offers the following default BiPredicateBeans:
- "contains": checks if a String is contained in another String
- "contains ignore case": checks if a String is contained in another String, case insensitive
- "contains any": checks if any of the given words are contained in a String. Words are specified as a single String split by ", ". Like this: "A, B, C, DEF GHI, E, F"
- "contains all": checks if all the given words are contained in a String. Words are specified as a single String split by ", ". Like this: "A, B, C, DEF GHI, E, F"
- "ends with": checks if a String ends with another String
- "ends with ignore case": checks if a String ends with another String, case insensitive
- "starts with": checks if a String starts with another String
- "starts with ignore case": checks if a String starts with another String, case insensitive
- "equals": checks for Strings equality
- "equals ignore case": checks for Strings equality, case insensitive
- "is not equal to": checks for Strings inequality
-
Property Summary
Properties inherited from class io.github.palexdev.materialfx.filter.base.AbstractFilter
selectedPredicateIndex -
Field Summary
Fields inherited from class io.github.palexdev.materialfx.filter.base.AbstractFilter
converter, predicates, selectedPredicateIndex -
Constructor Summary
ConstructorsConstructorDescriptionStringFilter(String name, Function<T, String> extractor) StringFilter(String name, Function<T, String> extractor, StringConverter<String> converter) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObservableList<BiPredicateBean<String,String>> Every implementation ofAbstractFiltermust define some defaultBiPredicates.protected final StringFilter<T>extend(BiPredicateBean<String, String>... predicateBeans) Allows to add some extraBiPredicateBeans alongside the default ones.Methods inherited from class io.github.palexdev.materialfx.filter.base.AbstractFilter
getConverter, getExtractor, getPredicates, getSelectedPredicateIndex, getValue, name, predicateFor, predicateFor, selectedPredicateIndexProperty, setSelectedPredicateIndex, toFilterBean, toFilterBean, toFilterBean, toString
-
Constructor Details
-
StringFilter
-
StringFilter
-
-
Method Details
-
defaultPredicates
Description copied from class:AbstractFilterEvery implementation ofAbstractFiltermust define some defaultBiPredicates.- Specified by:
defaultPredicatesin classAbstractFilter<T,String>
-
extend
@SafeVarargs protected final StringFilter<T> extend(BiPredicateBean<String, String>... predicateBeans) Description copied from class:AbstractFilterAllows to add some extraBiPredicateBeans alongside the default ones.- Specified by:
extendin classAbstractFilter<T,String>
-