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
PropertiesTypePropertyDescriptionfinal javafx.beans.property.ListProperty<FilterView.Filter<T>>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 in the filter group's dropdown list. -
Constructor Summary
ConstructorsConstructorDescriptionFilterGroup(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 the property filters.final StringgetId()Gets the value of the property id.final StringgetName()Gets the value of the property name.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 in the filter group's dropdown list.final voidsetFilters(javafx.collections.ObservableList<FilterView.Filter<T>> filters) Sets the value of the property filters.final voidSets the value of the property id.final voidSets the value of the property name.
-
Property Details
-
filters
- See Also:
-
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 the property filters.- Property description:
-
filtersProperty
- See Also:
-
setFilters
Sets the value of the property filters.- Property description:
-
nameProperty
public final javafx.beans.property.StringProperty nameProperty()The name of the filter as shown in the filter group's dropdown list.- See Also:
-
getName
Gets the value of the property name.- Property description:
- The name of the filter as shown in the filter group's dropdown list.
-
setName
Sets the value of the property name.- Property description:
- The name of the filter as shown in the filter group's dropdown list.
-
getId
Gets the value of the property id.- Property description:
- An identifier, useful for persisting session state of the filter view.
-
idProperty
public final javafx.beans.property.StringProperty idProperty()An identifier, useful for persisting session state of the filter view.- See Also:
-
setId
Sets the value of the property id.- Property description:
- An identifier, useful for persisting session state of the filter view.
-