com.sencha.gxt.state.client
Class TreeStateHandler<M>

java.lang.Object
  extended by com.sencha.gxt.state.client.AbstractStateHandler<S,C>
      extended by com.sencha.gxt.state.client.ComponentStateHandler<TreeStateHandler.TreeState,Tree<M,?>>
          extended by com.sencha.gxt.state.client.TreeStateHandler<M>
Type Parameters:
M - the data model type
All Implemented Interfaces:
BeforeRestoreStateEvent.HasBeforeRestoreStateHandlers<TreeStateHandler.TreeState,Tree<M,?>>, BeforeSaveStateEvent.HasBeforeSaveStateHandlers<TreeStateHandler.TreeState,Tree<M,?>>, RestoreStateEvent.HasRestoreStateHandlers<TreeStateHandler.TreeState,Tree<M,?>>, SaveStateEvent.HasSaveStateHandlers<TreeStateHandler.TreeState,Tree<M,?>>

public class TreeStateHandler<M>
extends ComponentStateHandler<TreeStateHandler.TreeState,Tree<M,?>>

Watches the expanded state of the tree, and stores it under the given key.


Nested Class Summary
static interface TreeStateHandler.TreeState
           
 
Constructor Summary
TreeStateHandler(Tree<M,?> component)
           
TreeStateHandler(Tree<M,?> component, java.lang.String key)
           
 
Method Summary
 void applyState()
          Applies the currently loaded state to the current stateful object.
 
Methods inherited from class com.sencha.gxt.state.client.AbstractStateHandler
addBeforeRestoreStateHandler, addBeforeSaveStateHandler, addRestoreStateHandler, addSaveStateHandler, getObject, getState, loadState, saveState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeStateHandler

public TreeStateHandler(Tree<M,?> component)

TreeStateHandler

public TreeStateHandler(Tree<M,?> component,
                        java.lang.String key)
Method Detail

applyState

public void applyState()
Description copied from class: AbstractStateHandler
Applies the currently loaded state to the current stateful object.

Specified by:
applyState in class AbstractStateHandler<TreeStateHandler.TreeState,Tree<M,?>>


Copyright © 2012. All Rights Reserved.