Package me.wouterkistemaker.eventmanager
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 TypeMethodDescriptionboolean
This method is called to check whether anEvent
was cancelled inside aEventListener
void
setCancelled
(boolean b) This method is called to cancel anEvent
preferably in anEventListener
-
Method Details
-
isCancelled
boolean isCancelled()This method is called to check whether anEvent
was cancelled inside aEventListener
- Returns:
true
if the event was cancelledfalse
otherwise
-
setCancelled
void setCancelled(boolean b) This method is called to cancel anEvent
preferably in anEventListener
-