SelectionBox,
the DateRangePicker, the SearchTextField, etc...
The control automatically manages a list of ChipView instances based on the current selection.
These chip views can be displayed by the ChipsViewContainer. To do so bind the observable list
of chips views of the filter view with the one provided by the ChipsViewContainer.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | SimpleFilterView.
An enumeration of possible layouts supported by the filter view. |
| Modifier and Type | Field and Description |
|---|---|
| private final InvalidationListener | |
| private final ListProperty | |
| private boolean | |
| private static final PseudoClass | |
| private final ObjectProperty | |
| private final Map | |
| private final ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final CalendarPicker | Returns: the newly created and configuredDatePicker instancethe prompt text to display in the date picker text)Adds a calendar picker to the filter view with the specified prompt text. |
| public final CheckBox | Returns: the created CheckBox instancethe text to display alongside the created CheckBox text)Adds a new CheckBox with the specified text to the control. |
| private <T> void | |
| public final DatePicker | Returns: the newly created and configuredDatePicker instancethe prompt text to display in the date picker text)Adds a date picker to the filter view with the specified prompt text. |
| public final DateRangePicker | Returns: the newly created and configuredDateRangePicker instancethe prompt text to display in the date range picker text)Adds a date range picker to the filter view and configures it with the specified prompt text. |
| public final SearchTextField | Returns: the new text fieldthe initial prompt text promptText)Add a new instance of a search text field. |
| public final < the enum type T extends Enum | Returns: the newly added selection boxthe prompt text text, Class<T> the type of the enum clz)Adds a selection box to the UI with the given prompt name and the values of the given enum type. |
| public final < the enum type T extends Enum | Returns: the newly added selection boxthe prompt text text, T... the possible values values)Adds a selection box to the UI with the given prompt name and the given values. |
| public final < the type of the items in the selection box T> SelectionBox | Returns: the newly added selection boxthe prompt text text, Collection<T> the possible values collection values)Adds a selection box to the UI with the given prompt name and the list of the given values. |
| public final < the type of the items in the selection box T> SelectionBox | Returns: the newly added selection boxthe prompt text text, T... the possible values values)Adds a selection box to the UI with the given prompt name and the list of the given values. |
| public final < the type of the items in the selection box T> SelectionBox | Returns: the newly created and configuredSelectionBox instancethe prompt text to display in the selection box text)Adds a selection box to the filter view with the specified prompt text. |
| public final CustomTextField | Returns: the new text fieldthe initial prompt text promptText)Creates a new instance of a textfield. |
| public final ListProperty | Returns: the list of chip viewsAn observable list containing the currently managed chip views. |
| public final void | |
| protected CalendarPicker | Returns: a new instance ofCalendarPicker.Factory method for creating a new |
| protected CheckBox | |
| protected DatePicker | Returns: a new instance ofDatePicker.Factory method for creating a new |
| protected DateRangePicker | Returns: a date range pickerFactory method for creating the date range picker that will be added to the view. |
| protected SearchTextField | Returns: a search text fieldFactory method for creating the search text field that will be added to the view. |
| protected < the type of the items that the selection box will manage T> SelectionBox | Returns: a new instance ofSelectionBox configured with default settingsCreates a new instance of a |
| protected CustomTextField | Returns: a text fieldFactory method for creating a text field that will be added to the view. |
| public final ObservableList | |
| public final SimpleFilterView. | |
| public final Runnable | |
| 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 ObjectProperty | Returns: the layout modeThe layout used by the control, either "standard" or "compact" / "unified". |
| public final ObjectProperty | Returns: the runnable to executed upon changeWill be invoked whenever anything changes within the filter settings. |
| private <T> void | |
| public final void | |
| public final void | |
| public final void | |
| private void | |
| private void |
| changeListener | back to summary |
|---|---|
| private final InvalidationListener changeListener | |
| chips | back to summary |
|---|---|
| private final ListProperty<ChipView<?>> chips | |
| clearing | back to summary |
|---|---|
| private boolean clearing | |
| COMPACT_PSEUDO_CLASS | back to summary |
|---|---|
| private static final PseudoClass COMPACT_PSEUDO_CLASS | |
| layoutMode | back to summary |
|---|---|
| private final ObjectProperty<SimpleFilterView. | |
| map | back to summary |
|---|---|
| private final Map<Node, Map<Object, ChipView<?>>> map | |
| onChange | back to summary |
|---|---|
| private final ObjectProperty<Runnable> onChange | |
| SimpleFilterView | back to summary |
|---|---|
| public SimpleFilterView() Constructs a new instance of | |
| addCalendarPicker | back to summary |
|---|---|
| public final CalendarPicker addCalendarPicker(String text) Adds a calendar picker to the filter view with the specified prompt text. The calendar picker allows users to select a date, and the selected date is represented as a chip in the filter view. The method initializes the calendar picker, sets its default properties, and adds listeners to handle changes in the selected date. When a date is selected, it is displayed as a chip, and the chip can be removed by the user, clearing the date from the picker.
| |
| addCheckBox | back to summary |
|---|---|
| public final CheckBox addCheckBox(String text) Adds a new CheckBox with the specified text to the control. The CheckBox is configured with listeners to manage its interaction with associated chip views and the internal state of the control. | |
| addChips | back to summary |
|---|---|
| private <T> void addChips(List<? extends T> addedList, SelectionBox<T> box) | |
| addDatePicker | back to summary |
|---|---|
| public final DatePicker addDatePicker(String text) Adds a date picker to the filter view with the specified prompt text. The date picker allows users to select a date, and the selected date is represented as a chip in the filter view. The method initializes the date picker, sets its default properties, and adds listeners to handle changes in the selected date. When a date is selected, it is displayed as a chip, and the chip can be removed by the user, clearing the date from the picker.
| |
| addDateRangePicker | back to summary |
|---|---|
| public final DateRangePicker addDateRangePicker(String text) Adds a date range picker to the filter view and configures it with the specified prompt text. This date range picker allows users to select a range of dates, and selected ranges are represented as chips in the filter view. The method initialises the date range picker, adds listeners to handle changes in selection, and manages the associated chip view for each selected range. It ensures proper update of the UI elements when ranges are added or removed.
| |
| addSearchTextField | back to summary |
|---|---|
| public final SearchTextField addSearchTextField(String promptText) Add a new instance of a search text field.
| |
| addSelectionBox | back to summary |
|---|---|
| public final <T extends Enum Adds a selection box to the UI with the given prompt name and the values of the given enum type.
| |
| addSelectionBox | back to summary |
|---|---|
| public final <T extends Enum Adds a selection box to the UI with the given prompt name and the given values.
| |
| addSelectionBox | back to summary |
|---|---|
| public final <T> SelectionBox Adds a selection box to the UI with the given prompt name and the list of the given values.
| |
| addSelectionBox | back to summary |
|---|---|
| public final <T> SelectionBox Adds a selection box to the UI with the given prompt name and the list of the given values.
| |
| addSelectionBox | back to summary |
|---|---|
| public final <T> SelectionBox Adds a selection box to the filter view with the specified prompt text. The selection box allows users to select multiple items, and the selected items are represented as chips in the filter view. The method initializes the selection box with default properties, sets up listeners to handle changes in the selected items, and manages the associated chip view for each selected item. It ensures proper updates to the UI elements when items are added or removed from the selection box.
| |
| addTextField | back to summary |
|---|---|
| public final CustomTextField addTextField(String promptText) Creates a new instance of a textfield.
| |
| chipsProperty | back to summary |
|---|---|
| public final ListProperty An observable list containing the currently managed chip views. Each chip view represents one selected filter criteria.
| |
| clear | back to summary |
|---|---|
| public final void clear() Clears all selections and values in the filter view.
This method iterates through the filter components, such as selection boxes and pickers, and resets
their values or selections to the default state. It also clears any associated mappings and updates
the UI accordingly.
If an unknown node type is encountered, this method will throw an Note During the execution of this method, a flag is set to avoid triggering unwanted actions due to internal state changes.
| |
| createCalendarPicker | back to summary |
|---|---|
| protected CalendarPicker createCalendarPicker() Factory method for creating a new
| |
| createCheckBox | back to summary |
|---|---|
| protected CheckBox createCheckBox() | |
| createDatePicker | back to summary |
|---|---|
| protected DatePicker createDatePicker() Factory method for creating a new
| |
| createDateRangePicker | back to summary |
|---|---|
| protected DateRangePicker createDateRangePicker() Factory method for creating the date range picker that will be added to the view. This method can be overridden to provide a custom date range picker implementation.
| |
| createSearchTextField | back to summary |
|---|---|
| protected SearchTextField createSearchTextField() Factory method for creating the search text field that will be added to the view. This method can be overridden to provide a custom search field implementation.
| |
| createSelectionBox | back to summary |
|---|---|
| protected <T> SelectionBox Creates a new instance of a
| |
| createTextField | back to summary |
|---|---|
| protected CustomTextField createTextField() Factory method for creating a text field that will be added to the view. This method can be overridden to provide a custom text field implementation.
| |
| getChips | back to summary |
|---|---|
| public final ObservableList | |
| getLayoutMode | back to summary |
|---|---|
| public final SimpleFilterView. | |
| getOnChange | back to summary |
|---|---|
| public final Runnable getOnChange() | |
| 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.
| |
| layoutModeProperty | back to summary |
|---|---|
| public final ObjectProperty The layout used by the control, either "standard" or "compact" / "unified".
| |
| onChangeProperty | back to summary |
|---|---|
| public final ObjectProperty Will be invoked whenever anything changes within the filter settings.
| |
| removeChips | back to summary |
|---|---|
| private <T> void removeChips(List<? extends T> removedList, SelectionBox<T> box) | |
| setChips | back to summary |
|---|---|
| public final void setChips(ObservableList<ChipView<?>> chips) | |
| setLayoutMode | back to summary |
|---|---|
| public final void setLayoutMode(SimpleFilterView. | |
| setOnChange | back to summary |
|---|---|
| public final void setOnChange(Runnable onChange) | |
| updateNodeStyles | back to summary |
|---|---|
| private void updateNodeStyles(Node node) | |
| updatePseudoClass | back to summary |
|---|---|
| private void updatePseudoClass() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SimpleFilterView. | COMPACT
The filter elements will be laid out right next to each other to create a compact visualization. |
| public static final SimpleFilterView. | STANDARD
The filter elements (selection boxes, date pickers, etc.) will be laid out one after the other with standard spacing and each element styled in its own standard way. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SimpleFilterView. | |
| public static SimpleFilterView. |
| COMPACT | back to summary |
|---|---|
| public static final SimpleFilterView. The filter elements will be laid out right next to each other to create a compact visualization. The styling will ensure a unified look of the overall filter view. | |
| STANDARD | back to summary |
|---|---|
| public static final SimpleFilterView. The filter elements (selection boxes, date pickers, etc.) will be laid out one after the other with standard spacing and each element styled in its own standard way. | |
| LayoutMode | back to summary |
|---|---|
| private LayoutMode() | |
| valueOf | back to summary |
|---|---|
| public static SimpleFilterView. | |
| values | back to summary |
|---|---|
| public static SimpleFilterView. | |