com.sencha.gxt.state.client
Class ComponentStateHandler<S,C extends Component>

java.lang.Object
  extended by com.sencha.gxt.state.client.AbstractStateHandler<S,C>
      extended by com.sencha.gxt.state.client.ComponentStateHandler<S,C>
Type Parameters:
S - the state type
C - the component
All Implemented Interfaces:
BeforeRestoreStateEvent.HasBeforeRestoreStateHandlers<S,C>, BeforeSaveStateEvent.HasBeforeSaveStateHandlers<S,C>, RestoreStateEvent.HasRestoreStateHandlers<S,C>, SaveStateEvent.HasSaveStateHandlers<S,C>
Direct Known Subclasses:
BorderLayoutStateHandler, GridStateHandler, TreeStateHandler

public abstract class ComponentStateHandler<S,C extends Component>
extends AbstractStateHandler<S,C>

Abstract state handler for Components, capable of using the widget's stateId property as a key instead of being given one. Will emit a warning in hosted mode (and if enabled, in production mode) if the stateId is generated, as this might change between page loads, or as the application changes.


Constructor Summary
ComponentStateHandler(java.lang.Class<S> stateType, C component)
           
ComponentStateHandler(java.lang.Class<S> stateType, C component, java.lang.String key)
           
 
Method Summary
 
Methods inherited from class com.sencha.gxt.state.client.AbstractStateHandler
addBeforeRestoreStateHandler, addBeforeSaveStateHandler, addRestoreStateHandler, addSaveStateHandler, applyState, getObject, getState, loadState, saveState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentStateHandler

public ComponentStateHandler(java.lang.Class<S> stateType,
                             C component)

ComponentStateHandler

public ComponentStateHandler(java.lang.Class<S> stateType,
                             C component,
                             java.lang.String key)


Copyright © 2012. All Rights Reserved.