public abstract class AbstractDialogAction extends AbstractAction implements Dialog.DialogAction
Action and Dialog.DialogAction interfaces and provides
a simpler API. It is highly recommended to use this class rather than
implement the Action or the Dialog.DialogAction interfaces directly.
To better understand how to use actions, and where they fit within the
JavaFX ecosystem, refer to the Action class documentation.
Action,
Dialog.DialogActionacceleratorProperty, disabledProperty, graphicProperty, longTextProperty, textPropertyacceleratorProperty, disabledProperty, graphicProperty, longTextProperty, textProperty| Constructor and Description |
|---|
AbstractDialogAction(String text)
Creates a dialog action with given text and common set of traits: CLOSING and DEFAULT
|
AbstractDialogAction(String text,
Dialog.ActionTrait... traits)
Creates a dialog action with given text and traits
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasTrait(Dialog.ActionTrait trait)
Returns true if
Action has given trait |
acceleratorProperty, disabledProperty, execute, getAccelerator, getGraphic, getLongText, getProperties, getText, graphicProperty, isDisabled, longTextProperty, setAccelerator, setDisabled, setGraphic, setLongText, setText, textPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceleratorProperty, disabledProperty, execute, getProperties, graphicProperty, longTextProperty, textPropertypublic AbstractDialogAction(String text, Dialog.ActionTrait... traits)
text - traits - public AbstractDialogAction(String text)
text - public boolean hasTrait(Dialog.ActionTrait trait)
Action has given traithasTrait in interface Dialog.DialogAction