labelFor property.
Label sets focusTraversable to false.
Example:
Label label = new Label("a label");
| Modifier and Type | Field and Description |
|---|---|
| private ObjectProperty | |
| private ChangeListener |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| protected Boolean | getInitialFocusTraversable()
Overrides javafx. Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value. |
| public final Node | |
| private void | |
| public final ObjectProperty | Returns: the Node that this label is to be associated withA Label can act as a label for a different Control or Node. |
| public final void |
| labelFor | back to summary |
|---|---|
| private ObjectProperty<Node> labelFor | |
| mnemonicStateListener | back to summary |
|---|---|
| private ChangeListener<Boolean> mnemonicStateListener | |
| Label | back to summary |
|---|---|
| public Label() Creates an empty label | |
| Label | back to summary |
|---|---|
| public Label(String text) Creates Label with supplied text.
| |
| Label | back to summary |
|---|---|
| public Label(String text, Node graphic) Creates a Label with the supplied text and graphic. | |
| 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
| |
| getInitialFocusTraversable | back to summary |
|---|---|
| protected Boolean getInitialFocusTraversable() Overrides javafx. Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value. This method is overridden as by default UI controls have focus traversable set to true, but that is not appropriate for this control.
| |
| getLabelFor | back to summary |
|---|---|
| public final Node getLabelFor() | |
| initialize | back to summary |
|---|---|
| private void initialize() | |
| labelForProperty | back to summary |
|---|---|
| public final ObjectProperty A Label can act as a label for a different Control or Node. This is used for Mnemonics and Accelerator parsing. This allows setting of the target Node.
| |
| setLabelFor | back to summary |
|---|---|
| public final void setLabelFor(Node value) | |