|
|||||||||
| 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<M,java.util.List<M>>
com.extjs.gxt.ui.client.data.BaseTreeLoader<M>
public class BaseTreeLoader<M extends ModelData>
Default implementation of the TreeLoader interface.
doit
field to false to cancel the action.
| Field Summary |
|---|
| Fields inherited from interface com.extjs.gxt.ui.client.data.Loader |
|---|
BeforeLoad, Load, LoadException |
| Constructor Summary | |
|---|---|
BaseTreeLoader(DataProxy<M,java.util.List<M>> proxy)
Creates a new tree loader instance. |
|
BaseTreeLoader(DataProxy<M,java.util.List<M>> proxy,
DataReader<M,java.util.List<M>> reader)
Creates a new tree loader instance. |
|
BaseTreeLoader(DataReader<M,java.util.List<M>> reader)
Creates a new tree loader instance. |
|
| Method Summary | |
|---|---|
boolean |
hasChildren(M parent)
Returns whether the given model has children. |
boolean |
load()
Loads the data using the current configuration. |
boolean |
loadChildren(M parent)
Initiates a load request for the parent's children. |
| Methods inherited from class com.extjs.gxt.ui.client.data.BaseLoader |
|---|
addLoadListener, getProxy, isReuseLoadConfig, load, removeLoadListener, setReuseLoadConfig |
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
|---|
addListener, fireEvent, fireEvent, getFiresEvents, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.extjs.gxt.ui.client.data.Loader |
|---|
addLoadListener, load, removeLoadListener |
| Methods inherited from interface com.extjs.gxt.ui.client.event.Observable |
|---|
addListener, fireEvent, removeAllListeners, removeListener |
| Constructor Detail |
|---|
public BaseTreeLoader(DataProxy<M,java.util.List<M>> proxy)
proxy - the data readerpublic BaseTreeLoader(DataReader<M,java.util.List<M>> reader)
reader - the data reader
public BaseTreeLoader(DataProxy<M,java.util.List<M>> proxy,
DataReader<M,java.util.List<M>> 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
public boolean load()
Loader
load in interface Loader<M extends ModelData>load in class BaseLoader<M extends ModelData,java.util.List<M extends ModelData>>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||