public class CancellableObjectEventArgs extends ObjectInfoEventArgs implements CancellableEventArgs
EventRegistry,
CancellableEventArgs| Constructor and Description |
|---|
CancellableObjectEventArgs(Transaction transaction,
ObjectInfo objectInfo,
java.lang.Object obj)
Creates a new instance for the specified object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the action related to this event.
|
ObjectInfo |
info() |
boolean |
isCancelled()
Queries if the action was already cancelled by some event listener.
|
java.lang.Object |
object()
The object that triggered this event.
|
objectContainer, transactionpublic CancellableObjectEventArgs(Transaction transaction, ObjectInfo objectInfo, java.lang.Object obj)
public void cancel()
CancellableEventArgscancel in interface CancellableEventArgsCancellableEventArgs.cancel()public boolean isCancelled()
CancellableEventArgsisCancelled in interface CancellableEventArgsCancellableEventArgs.isCancelled()public java.lang.Object object()
ObjectEventArgsobject in class ObjectInfoEventArgspublic ObjectInfo info()
info in class ObjectInfoEventArgs