com.sencha.gxt.data.shared.loader
Class LoadResultListStoreBinding<C,M,D extends ListLoadResult<M>>

java.lang.Object
  extended by com.sencha.gxt.data.shared.loader.LoadResultListStoreBinding<C,M,D>
Type Parameters:
C - load config object type
M - model objects that populate the store
D - load result passed from the loader
All Implemented Interfaces:
EventHandler, LoadHandler<C,D>

public class LoadResultListStoreBinding<C,M,D extends ListLoadResult<M>>
extends java.lang.Object
implements LoadHandler<C,D>

Event handler for the LoadEvent fired when a Loader has finished loading data. This handler takes a ListStore and uses the contents of the ListLoadResult provided by the Loader to re-populate the store.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sencha.gxt.data.shared.loader.LoadHandler
LoadHandler.HasLoadHandlers<M,C>
 
Constructor Summary
LoadResultListStoreBinding(ListStore<M> store)
          Creates a load event handler that re-populates the given list store using the list load result provided by the loader via the event.
 
Method Summary
 void onLoad(LoadEvent<C,D> event)
          Called after a load operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadResultListStoreBinding

public LoadResultListStoreBinding(ListStore<M> store)
Creates a load event handler that re-populates the given list store using the list load result provided by the loader via the event.

Parameters:
store - the list store
Method Detail

onLoad

public void onLoad(LoadEvent<C,D> event)
Description copied from interface: LoadHandler
Called after a load operation.

Specified by:
onLoad in interface LoadHandler<C,D extends ListLoadResult<M>>


Copyright © 2012. All Rights Reserved.