| Modifier and Type | Field and Description |
|---|---|
| private ReadOnlyBooleanWrapper | |
| private static final PseudoClass | |
| private ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ButtonBase(String
null text is treated as the empty string text)Create a ButtonBase with the given text. |
| public | ButtonBase(String
null text is treated as the empty string text, Node a null graphic is acceptable graphic)Create a ButtonBase with the given text and graphic. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public final ReadOnlyBooleanProperty | Returns: the property to indicate that the button has been "armed"Indicates that the button has been "armed" such that a mouse release will cause the button's action to be invoked. |
| public void | |
| public void | executeAccessibleAction(AccessibleAction action, Object... parameters)
Overrides javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed. |
| public abstract void | |
| public final EventHandler | |
| public final boolean | |
| public final ObjectProperty | Returns: the property to represent the button's action, which is invoked whenever the button is firedThe button's action, which is invoked whenever the button is fired. |
| private void | |
| public final void |
| armed | back to summary |
|---|---|
| private ReadOnlyBooleanWrapper armed | |
| ARMED_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass ARMED_PSEUDOCLASS_STATE | |
| onAction | back to summary |
|---|---|
| private ObjectProperty<EventHandler<ActionEvent>> onAction | |
| ButtonBase | back to summary |
|---|---|
| public ButtonBase() Create a default ButtonBase with empty text. | |
| ButtonBase | back to summary |
|---|---|
| public ButtonBase(String text) Create a ButtonBase with the given text.
| |
| ButtonBase | back to summary |
|---|---|
| public ButtonBase(String text, Node graphic) Create a ButtonBase with the given text and graphic. | |
| arm | back to summary |
|---|---|
| public void arm() Arms the button. An armed button will fire an action (whether that be
the action of a Note This function is intended to be used by experts, primarily by those implementing new Skins or Behaviors. It is not common for developers or designers to access this function directly. | |
| armedProperty | back to summary |
|---|---|
| public final ReadOnlyBooleanProperty armedProperty() Indicates that the button has been "armed" such that a mouse release
will cause the button's action to be invoked. This is subtly different
from pressed. Pressed indicates that the mouse has been
pressed on a Node and has not yet been released.
| |
| disarm | back to summary |
|---|---|
| public void disarm() Disarms the button. See Note This function is intended to be used by experts, primarily by those implementing new Skins or Behaviors. It is not common for developers or designers to access this function directly. | |
| executeAccessibleAction | back to summary |
|---|---|
| public void executeAccessibleAction(AccessibleAction action, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed.
This method is commonly overridden by subclasses to implement
action that are required for a specific role.
| |
| fire | back to summary |
|---|---|
| public abstract void fire() Invoked when a user gesture indicates that an event for this
If invoked, this method will be executed regardless of the status of
| |
| getOnAction | back to summary |
|---|---|
| public final EventHandler | |
| isArmed | back to summary |
|---|---|
| public final boolean isArmed() | |
| onActionProperty | back to summary |
|---|---|
| public final ObjectProperty The button's action, which is invoked whenever the button is fired. This
may be due to the user clicking on the button with the mouse, or by
a touch event, or by a key press, or if the developer programmatically
invokes the
| |
| setArmed | back to summary |
|---|---|
| private void setArmed(boolean value) | |
| setOnAction | back to summary |
|---|---|
| public final void setOnAction(EventHandler<ActionEvent> value) | |