|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.data.BaseLoader<java.util.List<M>>
com.extjs.gxt.ui.client.data.BaseTreeLoader<M>
M - the model data typepublic class BaseTreeLoader<M extends ModelData>
Default implementation of the TreeLoader interface.
BaseEvent.setCancelled(boolean).
| Field Summary | |
|---|---|
protected java.util.List<M> |
children
|
| Fields inherited from class com.extjs.gxt.ui.client.data.BaseLoader |
|---|
lastConfig, proxy, reader, reuseConfig |
| Fields inherited from interface com.extjs.gxt.ui.client.data.Loader |
|---|
BeforeLoad, Load, LoadException |
| Constructor Summary | |
|---|---|
BaseTreeLoader(DataProxy proxy)
Creates a new tree loader instance. |
|
BaseTreeLoader(DataProxy proxy,
DataReader reader)
Creates a new tree loader instance. |
|
BaseTreeLoader(DataReader reader)
Creates a new tree loader instance. |
|
| 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. |
protected void |
loadData(java.lang.Object config,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<M>> callback)
Called when a proxy is not being used. |
protected void |
onLoadFailure(java.lang.Object loadConfig,
java.lang.Throwable t)
Called when a load operation fails. |
protected void |
onLoadSuccess(java.lang.Object loadConfig,
java.util.List<M> result)
Called when the remote data has been received. |
| Methods inherited from class com.extjs.gxt.ui.client.data.BaseLoader |
|---|
addLoadListener, getLastConfig, getProxy, isReuseLoadConfig, load, load, loadData, newLoadConfig, prepareLoadConfig, removeLoadListener, setReuseLoadConfig |
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
|---|
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Field Detail |
|---|
protected java.util.List<M extends ModelData> children
| Constructor Detail |
|---|
public BaseTreeLoader(DataProxy proxy)
proxy - the data readerpublic BaseTreeLoader(DataReader reader)
reader - the data reader
public BaseTreeLoader(DataProxy proxy,
DataReader reader)
proxy - the data proxyreader - the data reader| Method Detail |
|---|
public boolean loadChildren(M parent)
TreeLoader
loadChildren in interface TreeLoader<M extends ModelData>parent - the parent
public boolean hasChildren(M parent)
TreeLoader
hasChildren in interface TreeLoader<M extends ModelData>parent - the parent model
protected void loadData(java.lang.Object config,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<M>> callback)
BaseLoader
loadData in class BaseLoader<java.util.List<M extends ModelData>>config - the load configcallback - the callback
protected void onLoadFailure(java.lang.Object loadConfig,
java.lang.Throwable t)
BaseLoader
onLoadFailure in class BaseLoader<java.util.List<M extends ModelData>>loadConfig - the load configt - the exception
protected void onLoadSuccess(java.lang.Object loadConfig,
java.util.List<M> result)
BaseLoader
onLoadSuccess in class BaseLoader<java.util.List<M extends ModelData>>loadConfig - the load configresult - data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||