Class ActionFromEnum
java.lang.Object
org.controlsfx.control.action.Action
madkit.action.ActionWithData
madkit.gui.ActionFromEnum
- All Implemented Interfaces:
EventListener,EventHandler<ActionEvent>
- Direct Known Subclasses:
FXActionCheck
Defines an action for JavaFX. This class is a wrapper around
Action to provide
a more convenient way to create actions.-
Property Summary
-
Constructor Summary
ConstructorsConstructorDescriptionActionFromEnum(ActionData actionInfo, Consumer<ActionEvent> eventHandler) Builds a new action usingActionDatafor the action information. -
Method Summary
Methods inherited from class madkit.action.ActionWithData
setActionDataMethods inherited from class org.controlsfx.control.action.Action
acceleratorProperty, disabledProperty, getAccelerator, getEventHandler, getGraphic, getLongText, getProperties, getStyle, getStyleClass, getText, graphicProperty, handle, isDisabled, isSelected, lock, longTextProperty, selectedProperty, setAccelerator, setDisabled, setEventHandler, setGraphic, setLongText, setSelected, setStyle, setText, styleProperty, textProperty
-
Constructor Details
-
ActionFromEnum
Builds a new action usingActionDatafor the action information.- Parameters:
actionInfo- the action information to useeventHandler- the event handler for the action
-