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

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

public class BeforeSaveStateEvent<S,O>
extends GwtEvent<BeforeSaveStateEvent.BeforeSaveStateHandler<S,O>>
implements CancellableEvent

Fires before state has been saved.


Nested Class Summary
static interface BeforeSaveStateEvent.BeforeSaveStateHandler<S,O>
          Handler class for BeforeSaveStateEvent events.
static interface BeforeSaveStateEvent.HasBeforeSaveStateHandlers<S,O>
           
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Constructor Summary
BeforeSaveStateEvent(S state, O target)
           
 
Method Summary
 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.
 
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

BeforeSaveStateEvent

public BeforeSaveStateEvent(S state,
                            O target)
Method Detail

getType

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

Returns:
returns the handler type

getAssociatedType

public GwtEvent.Type<BeforeSaveStateEvent.BeforeSaveStateHandler<S,O>> getAssociatedType()
Overrides:
getAssociatedType in class GwtEvent<BeforeSaveStateEvent.BeforeSaveStateHandler<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.