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
Properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGroup()Returns the group to which the filter belongs.final StringgetId()Gets the value of theidproperty.final StringgetName()Gets the value of thenameproperty.final javafx.beans.property.StringPropertyAn identifier, useful for persisting session state of the filter view.final javafx.beans.property.StringPropertyThe name of the filter as shown inside the UI.final voidSets the value of theidproperty.final voidSets the value of thenameproperty.
-
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 thenameproperty.- Property description:
- The name of the filter as shown inside the UI.
- Returns:
- the value of the
nameproperty - See Also:
-
setName
Sets the value of thenameproperty.- Property description:
- The name of the filter as shown inside the UI.
- Parameters:
name- the value for thenameproperty- See Also:
-
getId
Gets the value of theidproperty.- Property description:
- An identifier, useful for persisting session state of the filter view.
- Returns:
- the value of the
idproperty - 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 theidproperty.- Property description:
- An identifier, useful for persisting session state of the filter view.
- Parameters:
id- the value for theidproperty- See Also:
-