com.sencha.gxt.state.client
Class SaveStateEvent<S,O>

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<SaveStateEvent.SaveStateHandler<S,O>>
          extended by com.sencha.gxt.state.client.SaveStateEvent<S,O>
All Implemented Interfaces:
CancellableEvent

public class SaveStateEvent<S,O>
extends GwtEvent<SaveStateEvent.SaveStateHandler<S,O>>
implements CancellableEvent

Fires after state has been saved.


Nested Class Summary
static interface SaveStateEvent.HasSaveStateHandlers<S,O>
           
static interface SaveStateEvent.SaveStateHandler<S,O>
          Handler class for SaveStateEvent events.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Constructor Summary
SaveStateEvent(S state, O target)
           
 
Method Summary
 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.
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
getSource
 
Methods inherited from class com.google.web.bindery.event.shared.Event
toDebugString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SaveStateEvent

public SaveStateEvent(S state,
                      O target)
Method Detail

getType

public static GwtEvent.Type<SaveStateEvent.SaveStateHandler<?,?>> getType()
Gets the type associated with this event.

Returns:
returns the handler type

getAssociatedType

public GwtEvent.Type<SaveStateEvent.SaveStateHandler<S,O>> getAssociatedType()
Overrides:
getAssociatedType in class GwtEvent<SaveStateEvent.SaveStateHandler<S,O>>

getState

public S getState()
Returns the state.

Returns:
the state

getTarget

public O getTarget()
Returns the target object.

Returns:
the target

isCancelled

public boolean isCancelled()
Description copied from interface: CancellableEvent
Returns true if the event is cancelled.

Specified by:
isCancelled in interface CancellableEvent
Returns:
true for cancelled

setCancelled

public void setCancelled(boolean cancel)
Description copied from interface: CancellableEvent
True to cancel the event.

Specified by:
setCancelled in interface CancellableEvent
Parameters:
cancel - true to cancel


Copyright © 2012. All Rights Reserved.