|
|||||||||
| 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<C,D>
C - the config typeD - the data typepublic class BaseLoader<C,D>
Abstract base loader implementation.
| Field Summary |
|---|
| Fields inherited from interface com.extjs.gxt.ui.client.data.Loader |
|---|
BeforeLoad, Load, LoadException |
| Constructor Summary | |
|---|---|
BaseLoader(DataProxy<C,D> proxy)
Creates a new base loader instance. |
|
BaseLoader(DataProxy<C,D> proxy,
DataReader<C,D> reader)
Creates a new loader with the given proxy and reader. |
|
BaseLoader(DataReader<C,D> reader)
Creates a new base loader instance. |
|
| Method Summary | |
|---|---|
void |
addLoadListener(LoadListener listener)
Adds a load listener. |
DataProxy<C,D> |
getProxy()
Returns the loader's data proxy. |
boolean |
isReuseLoadConfig()
Returns true if the load config is being reused. |
boolean |
load()
Loads the data using the current configuration. |
boolean |
load(C loadConfig)
Loads the data using the given load configuration. |
void |
removeLoadListener(LoadListener listener)
Removes a load listener. |
void |
setReuseLoadConfig(boolean reuseLoadConfig)
Sets whether the same load config instance should be used for load operations. |
| 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.event.Observable |
|---|
addListener, fireEvent, removeAllListeners, removeListener |
| Constructor Detail |
|---|
public BaseLoader(DataProxy<C,D> proxy)
proxy - the data proxy
public BaseLoader(DataProxy<C,D> proxy,
DataReader<C,D> reader)
proxy - the data proxyreader - an optional data reader, if null, null will be passed to
proxy.load(Reader, Loadconfig, Datacallback)public BaseLoader(DataReader<C,D> reader)
reader - the reader| Method Detail |
|---|
public void addLoadListener(LoadListener listener)
Loader
addLoadListener in interface Loader<C>listener - the listener to addpublic DataProxy<C,D> getProxy()
public boolean isReuseLoadConfig()
public boolean load()
Loader
load in interface Loader<C>public boolean load(C loadConfig)
Loader
load in interface Loader<C>loadConfig - the load config
public void removeLoadListener(LoadListener listener)
Loader
removeLoadListener in interface Loader<C>listener - the listener to removepublic void setReuseLoadConfig(boolean reuseLoadConfig)
reuseLoadConfig - true to reuse
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||