
public class BeforeRestoreStateEvent<S,O> extends <any> implements CancellableEvent
| Modifier and Type | Class and Description |
|---|---|
static interface |
BeforeRestoreStateEvent.BeforeRestoreStateHandler<S,O>
Handler class for
BeforeRestoreStateEvent events. |
static interface |
BeforeRestoreStateEvent.HasBeforeRestoreStateHandlers<S,O> |
| Constructor and Description |
|---|
BeforeRestoreStateEvent(S state,
O target) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(BeforeRestoreStateEvent.BeforeRestoreStateHandler<S,O> handler) |
<any> |
getAssociatedType() |
S |
getState()
Returns the state.
|
O |
getTarget()
Returns the target object.
|
static <any> |
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.
|
public static <any> getType()
public <any> getAssociatedType()
public S getState()
public O getTarget()
public boolean isCancelled()
CancellableEventisCancelled in interface CancellableEventpublic void setCancelled(boolean cancel)
CancellableEventsetCancelled in interface CancellableEventcancel - true to cancelprotected void dispatch(BeforeRestoreStateEvent.BeforeRestoreStateHandler<S,O> handler)
Copyright © 2018. All rights reserved.