Class ControllerAppliedEvent

All Implemented Interfaces:
Cancelable

public class ControllerAppliedEvent extends ControllerEvent implements Cancelable
  • Field Details

    • cancelableAction

      protected CancelableAction cancelableAction
    • canceled

      protected boolean canceled
  • Constructor Details

    • ControllerAppliedEvent

      public ControllerAppliedEvent(Controller controller)
  • Method Details

    • isCanceled

      public boolean isCanceled()
      Description copied from interface: Cancelable
      Check if the event was cancel.
      Specified by:
      isCanceled in interface Cancelable
      Returns:
      The cancel status.
    • setCanceled

      public void setCanceled(boolean cancel)
      Description copied from interface: Cancelable
      Setter for the cancel status.
      Specified by:
      setCanceled in interface Cancelable
      Parameters:
      cancel - The new cancel status.
    • setCancelableAction

      public Cancelable setCancelableAction(CancelableAction action)
      Description copied from interface: Cancelable
      Setter for the cancelable action.
      Specified by:
      setCancelableAction in interface Cancelable
      Parameters:
      action - The action to execute.
    • getCancelableAction

      public CancelableAction getCancelableAction()
      Description copied from interface: Cancelable
      Getter for the cancelable action.
      Specified by:
      getCancelableAction in interface Cancelable
      Returns:
      The action to execute.