public class SaveStateEvent<S,O> extends GwtEvent<SaveStateEvent.SaveStateHandler<S,O>> implements CancellableEvent
Modifier and Type | Class and Description |
---|---|
static interface |
SaveStateEvent.HasSaveStateHandlers<S,O> |
static interface |
SaveStateEvent.SaveStateHandler<S,O>
Handler class for
SaveStateEvent events. |
GwtEvent.Type<H>
Constructor and Description |
---|
SaveStateEvent(S state,
O target) |
Modifier and Type | Method and Description |
---|---|
GwtEvent.Type<SaveStateEvent.SaveStateHandler<S,O>> |
getAssociatedType() |
S |
getState()
Returns the state.
|
O |
getTarget()
Returns the target object.
|
static GwtEvent.Type<SaveStateEvent.SaveStateHandler<?,?>> |
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<SaveStateEvent.SaveStateHandler<?,?>> getType()
public GwtEvent.Type<SaveStateEvent.SaveStateHandler<S,O>> getAssociatedType()
getAssociatedType
in class GwtEvent<SaveStateEvent.SaveStateHandler<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.