Class FilterView.FilterGroup<T>
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>> The filters that belong to this group.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) Constructs a new group with an identifier derived from its name.FilterGroup(String name, String id) Constructs a new group. -
Method Summary
Modifier and TypeMethodDescriptionfinal javafx.beans.property.ListProperty<FilterView.Filter<T>> The filters that belong to this group.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
The filters that belong to this group.- 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
-
FilterGroup
Constructs a new group with an identifier derived from its name.- Parameters:
name- the name that will be shown in the UI
-
-
Method Details
-
getFilters
Gets the value of thefiltersproperty.- Property description:
- The filters that belong to this group.
- Returns:
- the value of the
filtersproperty - See Also:
-
filtersProperty
The filters that belong to this group.- Returns:
- the filters property
- See Also:
-
setFilters
Sets the value of thefiltersproperty.- Property description:
- The filters that belong to this group.
- 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:
-