com.sencha.gxt.data.shared.loader
Class ChildTreeStoreBinding<M>

java.lang.Object
  extended by com.sencha.gxt.data.shared.loader.ChildTreeStoreBinding<M>
Type Parameters:
M - the type of objects that populate the store
All Implemented Interfaces:
EventHandler, LoadHandler<M,java.util.List<M>>

public class ChildTreeStoreBinding<M>
extends java.lang.Object
implements LoadHandler<M,java.util.List<M>>

Event handler for the LoadEvent fired when a Loader has finished loading data. It expects LoadEvent.getLoadConfig() to return a parent and LoadEvent.getLoadResult() to return a list of new children. It replaces the children of the given parent with the list of new children. The children are expected to be of type <M>. For children of type TreeStore.TreeNode see SubTreeStoreBinding.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sencha.gxt.data.shared.loader.LoadHandler
LoadHandler.HasLoadHandlers<M,C>
 
Constructor Summary
ChildTreeStoreBinding(TreeStore<M> store)
          Creates a LoadEvent handler for the given TreeStore.
 
Method Summary
 void onLoad(LoadEvent<M,java.util.List<M>> event)
          Called after a load operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildTreeStoreBinding

public ChildTreeStoreBinding(TreeStore<M> store)
Creates a LoadEvent handler for the given TreeStore.

Parameters:
store - the store whose events will be handled
Method Detail

onLoad

public void onLoad(LoadEvent<M,java.util.List<M>> event)
Description copied from interface: LoadHandler
Called after a load operation.

Specified by:
onLoad in interface LoadHandler<M,java.util.List<M>>


Copyright © 2012. All Rights Reserved.