Class CancellableEvent<T>
java.lang.Object
de.florianmichael.dietrichevents2.AbstractEvent<T>
de.florianmichael.dietrichevents2.CancellableEvent<T>
- Type Parameters:
T- The type of the listener.
This class represents an event that can be cancelled.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels the event.booleanvoidsetCancelled(boolean cancelled) Methods inherited from class de.florianmichael.dietrichevents2.AbstractEvent
call
-
Constructor Details
-
CancellableEvent
public CancellableEvent()
-
-
Method Details
-
cancel
public void cancel()Cancels the event. -
isCancelled
public boolean isCancelled() -
setCancelled
public void setCancelled(boolean cancelled)
-