Class ActionWithData
java.lang.Object
org.controlsfx.control.action.Action
madkit.action.ActionWithData
- All Implemented Interfaces:
EventListener
,EventHandler<ActionEvent>
- Direct Known Subclasses:
ActionFromEnum
,AgentMethodAction
,RequestAgentMessageAction
An Action which properties could be set using an
ActionData
.-
Property Summary
-
Constructor Summary
ConstructorsConstructorDescriptionActionWithData
(String text, Consumer<ActionEvent> eventHandler) Builds a new action using the given event handler. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setActionData
(ActionData actionInfo) Sets the action data for this action.Methods 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
-
ActionWithData
Builds a new action using the given event handler.- Parameters:
text
- the text to displayeventHandler
- the event handler for the action
-
-
Method Details
-
setActionData
Sets the action data for this action.- Parameters:
actionInfo
- the action information to use
-