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 TypeMethodDescriptionbooleanThis method is called to check whether anEventwas cancelled inside aEventListenervoidsetCancelled(boolean b) This method is called to cancel anEventpreferably in anEventListener
-
Method Details
-
isCancelled
boolean isCancelled()This method is called to check whether anEventwas cancelled inside aEventListener- Returns:
trueif the event was cancelledfalseotherwise
-
setCancelled
void setCancelled(boolean b) This method is called to cancel anEventpreferably in anEventListener
-