Interface Cancellable


public interface Cancellable
Represents an Event that has the option to be cancelled. Cancelled Events may result in a different processing by EventListeners
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method is called to check whether an Event was cancelled inside a EventListener
    void
    setCancelled(boolean b)
    This method is called to cancel an Event preferably in an EventListener
  • Method Details

    • isCancelled

      boolean isCancelled()
      This method is called to check whether an Event was cancelled inside a EventListener
      Returns:
      true if the event was cancelled false otherwise
    • setCancelled

      void setCancelled(boolean b)
      This method is called to cancel an Event preferably in an EventListener
      Parameters:
      b - whether the Event should be flagged as cancelled or not true cancels the Event false otherwise