ChipView instances. This view is usually used in combination
with a parent filter view (e.g. SimpleFilterView). The view also manages a hyperlink for clearing the
current selection settings iin the parent view. The view manages its own visibility based on whether there are
any chip views to show or not.
chipsProperty(), SimpleFilterView#chipsProperty()
| Modifier and Type | Field and Description |
|---|---|
| private final ListProperty | |
| private final StringProperty | |
| public final ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final ListProperty | |
| public final StringProperty | Returns: the text property used for the text of the hyperlink used to clear the viewA property storing the text for the hyperlink that is being used to clear the view. |
| public final ObservableList | |
| public final String | |
| 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 "on clear" callbackA callback that will be invoked when the user clicks on the "clear" hyperlink. |
| public final void | |
| public final void | |
| public final void | |
| private void |
| chips | back to summary |
|---|---|
| private final ListProperty<ChipView<?>> chips | |
| clearText | back to summary |
|---|---|
| private final StringProperty clearText | |
| onClear | back to summary |
|---|---|
| public final ObjectProperty<Runnable> onClear | |
| ChipsViewContainer | back to summary |
|---|---|
| public ChipsViewContainer() Constructs a new chips view container. | |
| chipsProperty | back to summary |
|---|---|
| public final ListProperty The list of chip views that will be shown by the view.
| |
| clearTextProperty | back to summary |
|---|---|
| public final StringProperty clearTextProperty() A property storing the text for the hyperlink that is being used to clear the view.
| |
| getChips | back to summary |
|---|---|
| public final ObservableList | |
| getClearText | back to summary |
|---|---|
| public final String getClearText() | |
| getOnClear | back to summary |
|---|---|
| public final Runnable getOnClear() | |
| 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.
| |
| onClearProperty | back to summary |
|---|---|
| public final ObjectProperty A callback that will be invoked when the user clicks on the "clear" hyperlink.
| |
| setChips | back to summary |
|---|---|
| public final void setChips(ObservableList<ChipView<?>> chips) | |
| setClearText | back to summary |
|---|---|
| public final void setClearText(String clearText) | |
| setOnClear | back to summary |
|---|---|
| public final void setOnClear(Runnable onClear) | |
| updateChips | back to summary |
|---|---|
| private void updateChips() | |