| Modifier and Type | Field and Description |
|---|---|
| private final ObjectProperty | |
| private final StringProperty | |
| private ObjectProperty | |
| private final BooleanProperty | |
| private static final PseudoClass |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | Returns: the supplier for the clipboard content when the user copies the labelStores the supplier used for filling the clipboard when the user copies the label. |
| public final StringProperty | |
| private void | |
| private void | |
| public final Supplier | |
| public final String | |
| public final EventHandler | |
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| private void | |
| public final boolean | |
| public final ObjectProperty | Returns: the action that is executed when the user copies the label textThe action that is executed when the user copies the label text. |
| public final BooleanProperty | Returns: true if the label is selectedDetermines whether the label is currently selected or not. |
| public final void | |
| public final void | |
| public final void | |
| public final void |
| copyContentSupplier | back to summary |
|---|---|
| private final ObjectProperty<Supplier<String>> copyContentSupplier | |
| copyMenuItemText | back to summary |
|---|---|
| private final StringProperty copyMenuItemText | |
| onCopyAction | back to summary |
|---|---|
| private ObjectProperty<EventHandler<ActionEvent>> onCopyAction | |
| selected | back to summary |
|---|---|
| private final BooleanProperty selected | |
| SELECTED_PSEUDO_CLASS | back to summary |
|---|---|
| private static final PseudoClass SELECTED_PSEUDO_CLASS | |
| EnhancedLabel | back to summary |
|---|---|
| public EnhancedLabel() | |
| EnhancedLabel | back to summary |
|---|---|
| public EnhancedLabel(String text) | |
| EnhancedLabel | back to summary |
|---|---|
| public EnhancedLabel(String text, Node node) | |
| copyContentSupplierProperty | back to summary |
|---|---|
| public final ObjectProperty Stores the supplier used for filling the clipboard when the user copies the label. Sometimes applications want to copy only a part of the label, e.g. an ID shown by the label like this: "Customer account #12345678". The copy content supplier can then decide to just return the ID "12345678" instead of the whole string. The default supplier however returns the whole string.
| |
| copyMenuItemTextProperty | back to summary |
|---|---|
| public final StringProperty copyMenuItemTextProperty() The text used for the "copy" menu item.
| |
| copyText | back to summary |
|---|---|
| private void copyText() | |
| copyText | back to summary |
|---|---|
| private void copyText(ActionEvent actionEvent) | |
| getCopyContentSupplier | back to summary |
|---|---|
| public final Supplier | |
| getCopyMenuItemText | back to summary |
|---|---|
| public final String getCopyMenuItemText() | |
| getOnCopyAction | back to summary |
|---|---|
| public final EventHandler | |
| 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.
| |
| init | back to summary |
|---|---|
| private void init() | |
| isSelected | back to summary |
|---|---|
| public final boolean isSelected() | |
| onCopyActionProperty | back to summary |
|---|---|
| public final ObjectProperty The action that is executed when the user copies the label text. The default action is to copy the text to the clipboard. This action can be overridden by setting a new event handler.
| |
| selectedProperty | back to summary |
|---|---|
| public final BooleanProperty selectedProperty() Determines whether the label is currently selected or not.
| |
| setCopyContentSupplier | back to summary |
|---|---|
| public final void setCopyContentSupplier(Supplier<String> copyContentSupplier) | |
| setCopyMenuItemText | back to summary |
|---|---|
| public final void setCopyMenuItemText(String copyMenuItemText) | |
| setOnCopyAction | back to summary |
|---|---|
| public final void setOnCopyAction(EventHandler<ActionEvent> value) | |
| setSelected | back to summary |
|---|---|
| public final void setSelected(boolean selected) | |