public abstract class Event
extends java.lang.Object
| Constructor and Description |
|---|
Event() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCancellable()
Indicates whether event is cancellable (supports the change of the
cancellation value).
|
boolean |
isCancelled()
Indicates whether event is cancelled.
|
protected boolean |
onCancellation(boolean cancelled)
Returns modified cancellation value if so required.
|
void |
setCancelled(boolean cancelled)
Changes the cancellation value of the event if it's supported by the
isCancellable(). |
public boolean isCancellable()
true whether cancellation is supported,
false otherwise.public boolean isCancelled()
public void setCancelled(boolean cancelled)
isCancellable(). Otherwise throws an exception.cancelled - The cancellation valueprotected boolean onCancellation(boolean cancelled)
cancelled - The cancellation value