|
|||||||||
| 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>
com.extjs.gxt.ui.client.data.BaseListLoader<C,D>
C - the list load config typeD - the list load result typepublic class BaseListLoader<C extends ListLoadConfig,D extends ListLoadResult>
Default implementation of the ListLoader 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 | |
|---|---|
BaseListLoader(DataProxy<C,D> proxy)
Creates a new loader instance with the given proxy. |
|
BaseListLoader(DataProxy<C,D> proxy,
DataReader<C,D> reader)
Creates a new loader instance. |
|
| Method Summary | |
|---|---|
Style.SortDir |
getSortDir()
Returns the current sort direction. |
java.lang.String |
getSortField()
Returns the current sort field. |
boolean |
isRemoteSort()
Returns true if remote sorting is enabled. |
void |
setRemoteSort(boolean remoteSort)
Sets the remote sort state. |
void |
setSortDir(Style.SortDir sortDir)
Sets the current sort dir. |
void |
setSortField(java.lang.String sortField)
Sets the current sort field. |
void |
useLoadConfig(C loadConfig)
Use the specified LoadConfig for all load calls. |
| Methods inherited from class com.extjs.gxt.ui.client.data.BaseLoader |
|---|
addLoadListener, getProxy, isReuseLoadConfig, load, 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, load, removeLoadListener |
| Methods inherited from interface com.extjs.gxt.ui.client.event.Observable |
|---|
addListener, fireEvent, removeAllListeners, removeListener |
| Constructor Detail |
|---|
public BaseListLoader(DataProxy<C,D> proxy)
proxy - the data proxy
public BaseListLoader(DataProxy<C,D> proxy,
DataReader<C,D> reader)
proxy - the data proxyreader - the data reader| Method Detail |
|---|
public Style.SortDir getSortDir()
ListLoader
getSortDir in interface ListLoader<C extends ListLoadConfig>public java.lang.String getSortField()
ListLoader
getSortField in interface ListLoader<C extends ListLoadConfig>public boolean isRemoteSort()
ListLoadertrue if remote sorting is enabled.
isRemoteSort in interface ListLoader<C extends ListLoadConfig>public void setRemoteSort(boolean remoteSort)
ListLoader
setRemoteSort in interface ListLoader<C extends ListLoadConfig>remoteSort - true for remote sort, false for local sortingpublic void setSortDir(Style.SortDir sortDir)
ListLoader
setSortDir in interface ListLoader<C extends ListLoadConfig>sortDir - the sort dirpublic void setSortField(java.lang.String sortField)
ListLoader
setSortField in interface ListLoader<C extends ListLoadConfig>sortField - the sort fieldpublic void useLoadConfig(C loadConfig)
BaseLoader.reuseConfig
will be set to true.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||