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>

public static class FilterView.FilterGroup<T> extends Object
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

    Properties
    Type
    Property
    Description
    final 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

    Constructors
    Constructor
    Description
     
    Constructs a new group.
  • Method Summary

    Modifier and Type
    Method
    Description
    final javafx.beans.property.ListProperty<FilterView.Filter<T>>
     
    final javafx.collections.ObservableList<FilterView.Filter<T>>
    Gets the value of the property filters.
    final String
    Gets the value of the property id.
    final String
    Gets the value of the property name.
    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 the property filters.
    final void
    Sets the value of the property id.
    final void
    Sets the value of the property name.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Property Details

  • Constructor Details

    • FilterGroup

      public FilterGroup(String name, String id)
      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

      public FilterGroup(String name)
  • Method Details

    • getFilters

      public final javafx.collections.ObservableList<FilterView.Filter<T>> getFilters()
      Gets the value of the property filters.
      Property description:
    • filtersProperty

      public final javafx.beans.property.ListProperty<FilterView.Filter<T>> filtersProperty()
      See Also:
    • setFilters

      public final void setFilters(javafx.collections.ObservableList<FilterView.Filter<T>> filters)
      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

      public final String 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

      public final void setName(String name)
      Sets the value of the property name.
      Property description:
      The name of the filter as shown in the filter group's dropdown list.
    • getId

      public final String 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

      public final void setId(String id)
      Sets the value of the property id.
      Property description:
      An identifier, useful for persisting session state of the filter view.