Class ActionWithData

All Implemented Interfaces:
EventListener, EventHandler<ActionEvent>
Direct Known Subclasses:
ActionFromEnum, AgentMethodAction, RequestAgentMessageAction

public class ActionWithData extends Action
An Action which properties could be set using an ActionData.
  • Constructor Details

    • ActionWithData

      public ActionWithData(String text, Consumer<ActionEvent> eventHandler)
      Builds a new action using the given event handler.
      Parameters:
      text - the text to display
      eventHandler - the event handler for the action
  • Method Details

    • setActionData

      public void setActionData(ActionData actionInfo)
      Sets the action data for this action.
      Parameters:
      actionInfo - the action information to use