Class ActionFromEnum

All Implemented Interfaces:
EventListener, EventHandler<ActionEvent>
Direct Known Subclasses:
FXActionCheck

public class ActionFromEnum extends ActionWithData
Defines an action for JavaFX. This class is a wrapper around Action to provide a more convenient way to create actions.
  • Constructor Details

    • ActionFromEnum

      public ActionFromEnum(ActionData actionInfo, Consumer<ActionEvent> eventHandler)
      Builds a new action using ActionData for the action information.
      Parameters:
      actionInfo - the action information to use
      eventHandler - the event handler for the action