public class BeforeSaveStateEvent<S,O> extends GwtEvent<BeforeSaveStateEvent.BeforeSaveStateHandler<S,O>> implements CancellableEvent
Modifier and Type | Class and Description |
---|---|
static interface |
BeforeSaveStateEvent.BeforeSaveStateHandler<S,O>
Handler class for
BeforeSaveStateEvent events. |
static interface |
BeforeSaveStateEvent.HasBeforeSaveStateHandlers<S,O> |
GwtEvent.Type<H>
Constructor and Description |
---|
BeforeSaveStateEvent(S state,
O target) |
Modifier and Type | Method and Description |
---|---|
GwtEvent.Type<BeforeSaveStateEvent.BeforeSaveStateHandler<S,O>> |
getAssociatedType() |
S |
getState()
Returns the state.
|
O |
getTarget()
Returns the target object.
|
static GwtEvent.Type<BeforeSaveStateEvent.BeforeSaveStateHandler<?,?>> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled()
Returns true if the event is cancelled.
|
void |
setCancelled(boolean cancel)
True to cancel the event.
|
toDebugString, toString
public static GwtEvent.Type<BeforeSaveStateEvent.BeforeSaveStateHandler<?,?>> getType()
public GwtEvent.Type<BeforeSaveStateEvent.BeforeSaveStateHandler<S,O>> getAssociatedType()
getAssociatedType
in class GwtEvent<BeforeSaveStateEvent.BeforeSaveStateHandler<S,O>>
public S getState()
public O getTarget()
public boolean isCancelled()
CancellableEvent
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancel)
CancellableEvent
setCancelled
in interface CancellableEvent
cancel
- true to cancelCopyright © 2015. All rights reserved.