com.extjs.gxt.ui.client.data
Interface TreeLoader<M extends ModelData>

Type Parameters:
M - the ModelData of the models being returned by the loader
All Superinterfaces:
Loader<java.util.List<M>>, Observable
All Known Subinterfaces:
RemoteSortTreeLoader<M>
All Known Implementing Classes:
BaseRemoteSortTreeLoader, BaseTreeLoader

public interface TreeLoader<M extends ModelData>
extends Loader<java.util.List<M>>

A Loader for trees.


Field Summary
 
Fields inherited from interface com.extjs.gxt.ui.client.data.Loader
BeforeLoad, Load, LoadException
 
Method Summary
 boolean hasChildren(M parent)
          Returns whether the given model has children.
 boolean loadChildren(M parent)
          Initiates a load request for the parent's children.
 
Methods inherited from interface com.extjs.gxt.ui.client.data.Loader
addLoadListener, load, load, removeLoadListener
 
Methods inherited from interface com.extjs.gxt.ui.client.event.Observable
addListener, fireEvent, getListeners, hasListeners, hasListeners, removeAllListeners, removeListener
 

Method Detail

hasChildren

boolean hasChildren(M parent)
Returns whether the given model has children.

Parameters:
parent - the parent model
Returns:
true if the given parent has children, and false if it has no children

loadChildren

boolean loadChildren(M parent)
Initiates a load request for the parent's children.

Parameters:
parent - the parent
Returns:
true if the load was requested