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 thefiltersproperty.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 in the filter group's dropdown list.final voidsetFilters(javafx.collections.ObservableList<FilterView.Filter<T>> filters) Sets the value of thefiltersproperty.final voidSets the value of theidproperty.final voidSets the value of thenameproperty.
-
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 thefiltersproperty.- Property description:
- Returns:
- the value of the
filtersproperty - See Also:
-
filtersProperty
- Returns:
- the
filtersproperty - See Also:
-
setFilters
Sets the value of thefiltersproperty.- Property description:
- Parameters:
filters- the value for thefiltersproperty- 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 thenameproperty.- Property description:
- The name of the filter as shown in the filter group's dropdown list.
- Returns:
- the value of the
nameproperty - See Also:
-
setName
Sets the value of thenameproperty.- Property description:
- The name of the filter as shown in the filter group's dropdown list.
- 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:
-