M
- the model data typepublic class TreeLoader<M> extends Loader<M,List<M>>
TreeLoader
interface.
Constructor and Description |
---|
TreeLoader(DataProxy<M,List<M>> proxy)
Creates a new tree loader instance.
|
TreeLoader(DataProxy<M,T> proxy,
DataReader<List<M>,T> reader)
Creates a new tree loader instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasChildren(M parent)
Returns true if the model has children.
|
boolean |
loadChildren(M parent)
Initiates a load request for the parent's children.
|
addBeforeLoadHandler, addLoaderHandler, addLoadExceptionHandler, addLoadHandler, getLastLoadConfig, getProxy, isReuseLoadConfig, load, load, setReuseLoadConfig
public TreeLoader(DataProxy<M,List<M>> proxy)
proxy
- the data readerpublic TreeLoader(DataProxy<M,T> proxy, DataReader<List<M>,T> reader)
proxy
- the data proxyreader
- the data readerpublic boolean hasChildren(M parent)
parent
- the parent modelpublic boolean loadChildren(M parent)
parent
- the parentCopyright © 2015. All rights reserved.