Action API. Primarily this class
is used to conveniently create UI controls from a given Action (this is
necessary for now as there is no built-in support for Action in JavaFX
UI controls at present).
Some of the methods in this class take a Collection of
actions. In these cases, it is likely they are designed to
work with action groups. For examples on how to work with
these methods, refer to the ActionGroup class documentation.
Action, ActionGroup
| Modifier and Type | Class and Description |
|---|---|
| public static enum | ActionUtils.
Action text behavior. |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static Action | ACTION_SEPARATOR
Action representation of the generic separator. |
| public static Action |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static <T extends ButtonBase> T | |
| private static <T extends MenuItem> T | |
| public static ButtonBase | configureButton(final Action action, ButtonBase
The button, final ActionUtils.ButtonBase that the Action should be bound to.Defines textBehaviorActionTextBehaviorTakes the provided |
| public static ButtonBase | configureButton(final Action action, ButtonBase
The button)ButtonBase that the Action should be bound to.Takes the provided |
| public static MenuItem | |
| private static Node | |
| public static Button | createButton(final Action action, final ActionUtils.
Defines textBehaviorActionTextBehaviorTakes the provided |
| public static Button | |
| public static ButtonBar | createButtonBar(Collection<? extends Action> actions)
Takes the provided |
| public static CheckBox | |
| public static CheckMenuItem | createCheckMenuItem(final Action
The action)Action that the CheckMenuItem should bind to.Takes the provided |
| public static ContextMenu | createContextMenu(Collection<? extends Action>
The actions)actions to place on the ContextMenu.Takes the provided |
| public static Hyperlink | |
| public static Menu | |
| public static MenuBar | createMenuBar(Collection<? extends Action> actions)
Takes the provided |
| public static MenuButton | createMenuButton(final Action
The action, final ActionUtils.Action that the MenuButton should bind to.Defines textBehaviorActionTextBehaviorTakes the provided |
| public static MenuButton | createMenuButton(final Action
The action)Action that the MenuButton should bind to.Takes the provided |
| public static MenuItem | |
| public static RadioButton | createRadioButton(final Action
The action)Action that the RadioButton should bind to.Takes the provided |
| public static RadioMenuItem | createRadioMenuItem(final Action
The action)Action that the RadioMenuItem should bind to.Takes the provided |
| public static SegmentedButton | createSegmentedButton(final ActionUtils.
Defines textBehavior,ActionTextBehaviorTakes the provided |
| public static SegmentedButton | createSegmentedButton(Collection<? extends Action> actions)
Takes the provided |
| public static SegmentedButton | createSegmentedButton(ActionUtils.
Defines textBehavior,ActionTextBehaviorA varargs array of actions)Action that the SegmentedButton should bind to.Takes the provided varargs array of |
| public static SegmentedButton | createSegmentedButton(Action...
A varargs array of actions)Action that the SegmentedButton should bind to.Takes the provided varargs array of |
| public static ToggleButton | createToggleButton(final Action
The action, final ActionUtils.Action that the ToggleButton should bind to.Defines textBehaviorActionTextBehaviorTakes the provided |
| public static ToggleButton | createToggleButton(final Action
The action)Action that the ToggleButton should bind to.Takes the provided |
| public static ToolBar | createToolBar(Collection<? extends Action> actions, ActionUtils.
defines textBehaviorActionTextBehaviorTakes the provided |
| private static Collection | |
| private static void | |
| private static void | |
| public static void | unconfigureButton(ButtonBase
a button)ButtonBase that was bound to an ActionRemoves all bindings and listeners which were added when the supplied
|
| public static void | |
| public static ButtonBar | updateButtonBar(ButtonBar
The buttonBar, Collection<? extends Action> actions)buttonBar to updateTakes the provided |
| public static ContextMenu | updateContextMenu(ContextMenu
The menu, Collection<? extends Action> menu to updateThe actions)actions to place on the ContextMenu.Takes the provided |
| public static MenuBar | updateMenuBar(MenuBar
The menuBar, Collection<? extends Action> actions)menuBar to updateTakes the provided |
| public static ToolBar | updateToolBar(ToolBar
The toolbar, Collection<? extends Action> actions, ActionUtils.toolbar to updatedefines textBehaviorActionTextBehaviorTakes the provided |