java.lang.Object
com.dlsc.gemsfx.FilterView.Filter<T>
- Type Parameters:
T
- the type of the model objects managed by the filter view
- All Implemented Interfaces:
Predicate<T>
- Enclosing class:
FilterView<T>
A filter is a predicate that will be used for filtering the elements of an
observable list. A filter may only be added to one
FilterView.FilterGroup
.- See Also:
-
FilterView.FilterGroup.getFilters()
FilteredList.setPredicate(Predicate)
-
Property Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetGroup()
Returns the group to which the filter belongs.final String
getId()
Gets the value of theid
property.final String
getName()
Gets the value of thename
property.final javafx.beans.property.StringProperty
An identifier, useful for persisting session state of the filter view.final javafx.beans.property.StringProperty
The name of the filter as shown inside the UI.final void
Sets the value of theid
property.final void
Sets the value of thename
property.
-
Property Details
-
name
public final javafx.beans.property.StringProperty namePropertyThe name of the filter as shown inside the UI.- See Also:
-
id
public final javafx.beans.property.StringProperty idPropertyAn identifier, useful for persisting session state of the filter view.- See Also:
-
-
Constructor Details
-
Filter
Constructs a new filter with the given name.- Parameters:
name
- the name of the filter (e.g. "Male")id
- the id of the filter
-
Filter
Constructs a new filter with the given name.- Parameters:
name
- the name of the filter (e.g. "Male")
-
-
Method Details
-
getGroup
Returns the group to which the filter belongs.- Returns:
- the filter's "parent" group
- See Also:
-
nameProperty
public final javafx.beans.property.StringProperty nameProperty()The name of the filter as shown inside the UI.- Returns:
- the filter's name
- See Also:
-
getName
Gets the value of thename
property.- Property description:
- The name of the filter as shown inside the UI.
- Returns:
- the value of the
name
property - See Also:
-
setName
Sets the value of thename
property.- Property description:
- The name of the filter as shown inside the UI.
- Parameters:
name
- the value for thename
property- See Also:
-
getId
Gets the value of theid
property.- Property description:
- An identifier, useful for persisting session state of the filter view.
- Returns:
- the value of the
id
property - See Also:
-
idProperty
public final javafx.beans.property.StringProperty idProperty()An identifier, useful for persisting session state of the filter view.- Returns:
- the ID of the filter group
- See Also:
-
setId
Sets the value of theid
property.- Property description:
- An identifier, useful for persisting session state of the filter view.
- Parameters:
id
- the value for theid
property- See Also:
-