java.lang.Object
com.dlsc.gemsfx.FilterView.FilterGroup<T>
- Type Parameters:
T
- the type of the model objects managed by the filter view
- Enclosing class:
FilterView<T>
A filter group consists of a group of filters and has a name. The name
is displayed in the UI as part of the dropdown list that expostes the
available filters.
-
Property Summary
TypePropertyDescriptionfinal javafx.beans.property.ListProperty<FilterView.Filter<T>>
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 in the filter group's dropdown list. -
Constructor Summary
ConstructorDescriptionFilterGroup
(String name) FilterGroup
(String name, String id) Constructs a new group. -
Method Summary
Modifier and TypeMethodDescriptionfinal javafx.beans.property.ListProperty<FilterView.Filter<T>>
final javafx.collections.ObservableList<FilterView.Filter<T>>
Gets the value of thefilters
property.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 in the filter group's dropdown list.final void
setFilters
(javafx.collections.ObservableList<FilterView.Filter<T>> filters) Sets the value of thefilters
property.final void
Sets the value of theid
property.final void
Sets the value of thename
property.
-
Property Details
-
filters
-
name
public final javafx.beans.property.StringProperty namePropertyThe name of the filter as shown in the filter group's dropdown list.- See Also:
-
id
public final javafx.beans.property.StringProperty idPropertyAn identifier, useful for persisting session state of the filter view.- See Also:
-
-
Constructor Details
-
FilterGroup
Constructs a new group.- Parameters:
name
- the name that will be shown in the UI, e.g. "Gender"id
- the id of the group
-
FilterGroup
-
-
Method Details
-
getFilters
Gets the value of thefilters
property.- Property description:
- Returns:
- the value of the
filters
property - See Also:
-
filtersProperty
- Returns:
- the
filters
property - See Also:
-
setFilters
Sets the value of thefilters
property.- Property description:
- Parameters:
filters
- the value for thefilters
property- See Also:
-
nameProperty
public final javafx.beans.property.StringProperty nameProperty()The name of the filter as shown in the filter group's dropdown list.- Returns:
- the filter name
- See Also:
-
getName
Gets the value of thename
property.- Property description:
- The name of the filter as shown in the filter group's dropdown list.
- 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 in the filter group's dropdown list.
- 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:
-