ChipView).
Items can be added via the getItems() list. Table or list views have to use
the getFilteredItems() list. This filtered list can also be wrapped via a
SortedList and then added to a table or list view.
An input field for filtering based on text input will appear as soon as a text filter provider
has been defined. See setTextFilterProvider(Callback).
Applications with additional filtering needs can utilize the additionalFilterPredicateProperty().
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | FilterView.
the type of the model objects managed by the filter view T>A filter is a predicate that will be used for filtering the elements of an observable list. |
| public static class | FilterView.
the type of the model objects managed by the filter view T>A filter group consists of a group of filters and has a name. |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final ReadOnlyListWrapper | |
| private final ListProperty | |
| private final ReadOnlyObjectWrapper | |
| private final ListProperty | |
| private final StringProperty | |
| private final ListProperty | |
| private final IntegerProperty | |
| private final SearchTextField | |
| private final BooleanProperty | |
| private final StringProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final StringProperty | |
| private final ObjectProperty | |
| private final StringProperty | |
| private final ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final ObjectProperty | Returns: the extra nodeAn extra node that can be added to the header of the filter view. |
| public final ReadOnlyListProperty | |
| public final ListProperty | |
| public final ReadOnlyObjectProperty | |
| public ListProperty | |
| public final StringProperty | Returns: the filter textStores the filter text entered by the user inside the filter text field. |
| public final Predicate | |
| public final Node | |
| public final ObservableList | |
| public final ObservableList | |
| public final Predicate | |
| public ObservableList | |
| public final String | |
| public final ObservableList | |
| public int | |
| public final SearchTextField | Returns: the search text fieldReturns the search text field used for entering filter terms. |
| public final String | |
| public Node | |
| public final Callback | |
| public final String | |
| public final Node | |
| public final String | |
| public final Node | |
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| public final boolean | |
| public final ListProperty | |
| public IntegerProperty | scrollThresholdProperty()
The threshold number of filters at which a ScrollPane is introduced to handle large number of elements. |
| public final void | |
| public final void | |
| public final void | |
| public void | |
| public final void | |
| public final void | |
| public void | |
| public final void | |
| public final void | |
| public void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final BooleanProperty | Returns: true if the header will be shown (default is "true")A flag to control whether the title, subtitle, and the search field will be shown or not. |
| public ObjectProperty | |
| public final StringProperty | |
| public final ObjectProperty | Returns: the text filter predicate providerReturns a filter predicate for a given text. |
| public final ObjectProperty | |
| public final ObjectProperty | |
| public final StringProperty | |
| public final StringProperty |
| additionalFilterPredicate | back to summary |
|---|---|
| private final ObjectProperty<Predicate<T>> additionalFilterPredicate | |
| extras | back to summary |
|---|---|
| private final ObjectProperty<Node> extras | |
| filteredItems | back to summary |
|---|---|
| private final ReadOnlyListWrapper<T> filteredItems | |
| filterGroups | back to summary |
|---|---|
| private final ListProperty<FilterView. | |
| filterPredicate | back to summary |
|---|---|
| private final ReadOnlyObjectWrapper<Predicate<T>> filterPredicate | |
| filters | back to summary |
|---|---|
| private final ListProperty<FilterView. | |
| filterText | back to summary |
|---|---|
| private final StringProperty filterText | |
| items | back to summary |
|---|---|
| private final ListProperty<T> items | |
| scrollThreshold | back to summary |
|---|---|
| private final IntegerProperty scrollThreshold | |
| searchTextField | back to summary |
|---|---|
| private final SearchTextField searchTextField | |
| showHeader | back to summary |
|---|---|
| private final BooleanProperty showHeader | |
| subtitle | back to summary |
|---|---|
| private final StringProperty subtitle | |
| subtitleGraphic | back to summary |
|---|---|
| private final ObjectProperty<Node> subtitleGraphic | |
| textFilterProvider | back to summary |
|---|---|
| private final ObjectProperty<Callback<String, Predicate<T>>> textFilterProvider | |
| title | back to summary |
|---|---|
| private final StringProperty title | |
| titleGraphic | back to summary |
|---|---|
| private final ObjectProperty<Node> titleGraphic | |
| titlePostfix | back to summary |
|---|---|
| private final StringProperty titlePostfix | |
| titlePostfixGraphic | back to summary |
|---|---|
| private final ObjectProperty<Node> titlePostfixGraphic | |
| FilterView | back to summary |
|---|---|
| public FilterView() | |
| additionalFilterPredicateProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| extrasProperty | back to summary |
|---|---|
| public final ObjectProperty An extra node that can be added to the header of the filter view. The node will appear to the right of the (optional) text filter field.
| |
| filteredItemsProperty | back to summary |
|---|---|
| public final ReadOnlyListProperty | |
| filterGroupsProperty | back to summary |
|---|---|
| public final ListProperty | |
| filterPredicateProperty | back to summary |
|---|---|
| public final ReadOnlyObjectProperty | |
| filtersProperty | back to summary |
|---|---|
| public ListProperty | |
| filterTextProperty | back to summary |
|---|---|
| public final StringProperty filterTextProperty() Stores the filter text entered by the user inside the filter text field.
| |
| getAdditionalFilterPredicate | back to summary |
|---|---|
| public final Predicate | |
| getExtras | back to summary |
|---|---|
| public final Node getExtras() | |
| getFilteredItems | back to summary |
|---|---|
| public final ObservableList | |
| getFilterGroups | back to summary |
|---|---|
| public final ObservableList | |
| getFilterPredicate | back to summary |
|---|---|
| public final Predicate | |
| getFilters | back to summary |
|---|---|
| public ObservableList | |
| getFilterText | back to summary |
|---|---|
| public final String getFilterText() | |
| getItems | back to summary |
|---|---|
| public final ObservableList | |
| getScrollThreshold | back to summary |
|---|---|
| public int getScrollThreshold() | |
| getSearchTextField | back to summary |
|---|---|
| public final SearchTextField getSearchTextField() Returns the search text field used for entering filter terms.
| |
| getSubtitle | back to summary |
|---|---|
| public final String getSubtitle() | |
| getSubtitleGraphic | back to summary |
|---|---|
| public Node getSubtitleGraphic() | |
| getTextFilterProvider | back to summary |
|---|---|
| public final Callback | |
| getTitle | back to summary |
|---|---|
| public final String getTitle() | |
| getTitleGraphic | back to summary |
|---|---|
| public final Node getTitleGraphic() | |
| getTitlePostfix | back to summary |
|---|---|
| public final String getTitlePostfix() | |
| getTitlePostfixGraphic | back to summary |
|---|---|
| public final Node getTitlePostfixGraphic() | |
| getUserAgentStylesheet | back to summary |
|---|---|
| public String getUserAgentStylesheet() Overrides javafx. Doc from javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. These styles are used in addition to whatever user-agent stylesheets are in use. This provides a mechanism for third parties to introduce styles for custom controls. The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath. Subclasses overriding this method should not assume any particular implementation approach as to the number and frequency with which it is called. For this reason, attempting any kind of dynamic implementation (i.e. returning different user agent stylesheet values) based on some state change is highly discouraged, as there is no guarantee when, or even if, this method will be called. Some JavaFX CSS implementations may choose to cache this response for an indefinite period of time, and therefore there should be no expectation around when this method is called.
For additional information about using CSS with the scene graph,
see the CSS Reference Guide.
| |
| isShowHeader | back to summary |
|---|---|
| public final boolean isShowHeader() | |
| itemsProperty | back to summary |
|---|---|
| public final ListProperty The list of items that will be managed by the view.
| |
| scrollThresholdProperty | back to summary |
|---|---|
| public IntegerProperty scrollThresholdProperty() The threshold number of filters at which a ScrollPane is introduced to handle large number of elements. If the number of filters is equal to or exceeds this value, the filters will be displayed within a ScrollPane. | |
| setAdditionalFilterPredicate | back to summary |
|---|---|
| public final void setAdditionalFilterPredicate(Predicate<T> additionalFilterPredicate) | |
| setExtras | back to summary |
|---|---|
| public final void setExtras(Node extras) | |
| setFilterGroups | back to summary |
|---|---|
| public final void setFilterGroups(ObservableList<FilterView. | |
| setFilters | back to summary |
|---|---|
| public void setFilters(ObservableList<FilterView. | |
| setFilterText | back to summary |
|---|---|
| public final void setFilterText(String filterText) | |
| setItems | back to summary |
|---|---|
| public final void setItems(ObservableList<T> items) | |
| setScrollThreshold | back to summary |
|---|---|
| public void setScrollThreshold(int scrollThreshold) | |
| setShowHeader | back to summary |
|---|---|
| public final void setShowHeader(boolean showHeader) | |
| setSubtitle | back to summary |
|---|---|
| public final void setSubtitle(String subtitle) | |
| setSubtitleGraphic | back to summary |
|---|---|
| public void setSubtitleGraphic(Node subtitleGraphic) | |
| setTextFilterProvider | back to summary |
|---|---|
| public final void setTextFilterProvider(Callback<String, Predicate<T>> textFilterProvider) | |
| setTitle | back to summary |
|---|---|
| public final void setTitle(String title) | |
| setTitleGraphic | back to summary |
|---|---|
| public final void setTitleGraphic(Node titleGraphic) | |
| setTitlePostfix | back to summary |
|---|---|
| public final void setTitlePostfix(String titlePostfix) | |
| setTitlePostfixGraphic | back to summary |
|---|---|
| public final void setTitlePostfixGraphic(Node titlePostfixGraphic) | |
| showHeaderProperty | back to summary |
|---|---|
| public final BooleanProperty showHeaderProperty() A flag to control whether the title, subtitle, and the search field will be shown or not.
| |
| subtitleGraphicProperty | back to summary |
|---|---|
| public ObjectProperty The graphic node displayed alongside the subtitle label. | |
| subtitleProperty | back to summary |
|---|---|
| public final StringProperty subtitleProperty() The subtitle text for the filter view.
| |
| textFilterProviderProperty | back to summary |
|---|---|
| public final ObjectProperty Returns a filter predicate for a given text. This predicate will be added to the list of internally managed predicates. The input field for text will only appear if this predicate has been specified.
| |
| titleGraphicProperty | back to summary |
|---|---|
| public final ObjectProperty The graphic node displayed alongside the title label. | |
| titlePostfixGraphicProperty | back to summary |
|---|---|
| public final ObjectProperty The graphic node displayed alongside the title postfix label. | |
| titlePostfixProperty | back to summary |
|---|---|
| public final StringProperty titlePostfixProperty() A text that can be added to the title text.
| |
| titleProperty | back to summary |
|---|---|
| public final StringProperty titleProperty() The title for the filter view
| |
FilterGroup.
| Modifier and Type | Field and Description |
|---|---|
| private FilterView. | |
| private final StringProperty | |
| private final StringProperty | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | Filter(String
the name of the filter (e.g., "Male") name, String the id of the filter id, boolean the default selected state of the filter; selected)true if the filter should be selected by default, false otherwiseConstructs a new filter with the given name and id, setting it to the default selected state. |
| Modifier and Type | Method and Description |
|---|---|
| public FilterView. | |
| public final String | |
| public final String | |
| public final StringProperty | Returns: the ID of the filter groupAn identifier, useful for persisting session state of the filter view. |
| public boolean | Returns: true if the filter is selected by default, false otherwiseReturns the default selected state of the filter. |
| public final StringProperty | |
| pack-priv void | |
| public final void | |
| public final void |
| group | back to summary |
|---|---|
| private FilterView. | |
| id | back to summary |
|---|---|
| private final StringProperty id | |
| name | back to summary |
|---|---|
| private final StringProperty name | |
| selected | back to summary |
|---|---|
| private boolean selected | |
| Filter | back to summary |
|---|---|
| public Filter(String name, String id) Constructs a new filter with the given name. | |
| Filter | back to summary |
|---|---|
| public Filter(String name) Constructs a new filter with the given name.
| |
| Filter | back to summary |
|---|---|
| public Filter(String name, boolean selected) Constructs a new filter with the given name, setting it to the default selected state.
| |
| Filter | back to summary |
|---|---|
| public Filter(String name, String id, boolean selected) Constructs a new filter with the given name and id, setting it to the default selected state. | |
| getGroup | back to summary |
|---|---|
| public FilterView. Returns the group to which the filter belongs.
| |
| getId | back to summary |
|---|---|
| public final String getId() | |
| getName | back to summary |
|---|---|
| public final String getName() | |
| idProperty | back to summary |
|---|---|
| public final StringProperty idProperty() An identifier, useful for persisting session state of the filter view.
| |
| isSelected | back to summary |
|---|---|
| public boolean isSelected() Returns the default selected state of the filter.
| |
| nameProperty | back to summary |
|---|---|
| public final StringProperty nameProperty() The name of the filter as shown inside the UI.
| |
| setGroup | back to summary |
|---|---|
| pack-priv void setGroup(FilterView. | |
| setId | back to summary |
|---|---|
| public final void setId(String id) | |
| setName | back to summary |
|---|---|
| public final void setName(String name) | |
| Modifier and Type | Field and Description |
|---|---|
| private final ListProperty | |
| private final StringProperty | |
| private final StringProperty |
| Access | Constructor and Description |
|---|---|
| public | FilterGroup(String
the name that will be shown in the UI, e.g. "Gender" name, String the id of the group id)Constructs a new group. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final ListProperty | |
| public final ObservableList | |
| public final String | |
| public final String | |
| public final StringProperty | Returns: the ID of the filter groupAn identifier, useful for persisting session state of the filter view. |
| public final StringProperty | Returns: the filter nameThe name of the filter as shown in the filter group's dropdown list. |
| public final void | |
| public final void | |
| public final void |
| filters | back to summary |
|---|---|
| private final ListProperty<FilterView. | |
| id | back to summary |
|---|---|
| private final StringProperty id | |
| name | back to summary |
|---|---|
| private final StringProperty name | |
| FilterGroup | back to summary |
|---|---|
| public FilterGroup(String name, String id) Constructs a new group. | |
| FilterGroup | back to summary |
|---|---|
| public FilterGroup(String name) | |
| filtersProperty | back to summary |
|---|---|
| public final ListProperty | |
| getFilters | back to summary |
|---|---|
| public final ObservableList | |
| getId | back to summary |
|---|---|
| public final String getId() | |
| getName | back to summary |
|---|---|
| public final String getName() | |
| idProperty | back to summary |
|---|---|
| public final StringProperty idProperty() An identifier, useful for persisting session state of the filter view.
| |
| nameProperty | back to summary |
|---|---|
| public final StringProperty nameProperty() The name of the filter as shown in the filter group's dropdown list.
| |
| setFilters | back to summary |
|---|---|
| public final void setFilters(ObservableList<FilterView. | |
| setId | back to summary |
|---|---|
| public final void setId(String id) | |
| setName | back to summary |
|---|---|
| public final void setName(String name) | |