|
|||||||||
| 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>
com.extjs.gxt.ui.client.data.BasePagingLoader<C,D>
C - the paging load config typeD - the paging load result typepublic class BasePagingLoader<C extends PagingLoadConfig,D extends PagingLoadResult>
Default implementation of the PagingLoader interface.
| Field Summary |
|---|
| Fields inherited from interface com.extjs.gxt.ui.client.data.Loader |
|---|
BeforeLoad, Load, LoadException |
| Constructor Summary | |
|---|---|
BasePagingLoader(DataProxy<C,D> proxy)
Creates a new paging loader instance. |
|
BasePagingLoader(DataProxy<C,D> proxy,
DataReader reader)
Creates a new paging loader instance. |
|
| Method Summary | |
|---|---|
int |
getLimit()
Returns the current limit. |
int |
getOffset()
Returns the offset of the first record. |
int |
getTotalCount()
Returns the total number of models in the dataset as returned by the server. |
void |
load(int offset,
int limit)
Loads the data using the specified configuation. |
void |
setLimit(int limit)
Sets the limit size. |
void |
setOffset(int offset)
Sets the offset. |
void |
useLoadConfig(C loadConfig)
Use the specified LoadConfig for all load calls. |
| Methods inherited from class com.extjs.gxt.ui.client.data.BaseListLoader |
|---|
getSortDir, getSortField, isRemoteSort, setRemoteSort, setSortDir, setSortField |
| 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.ListLoader |
|---|
getSortDir, getSortField, isRemoteSort, setRemoteSort, setSortDir, setSortField |
| 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 BasePagingLoader(DataProxy<C,D> proxy)
proxy - the data proxy
public BasePagingLoader(DataProxy<C,D> proxy,
DataReader reader)
proxy - the data proxyreader - the data reader| Method Detail |
|---|
public int getLimit()
PagingLoader
getLimit in interface PagingLoader<C extends PagingLoadConfig>public int getOffset()
PagingLoader
getOffset in interface PagingLoader<C extends PagingLoadConfig>public int getTotalCount()
PagingLoader
getTotalCount in interface PagingLoader<C extends PagingLoadConfig>
public void load(int offset,
int limit)
PagingLoader
load in interface PagingLoader<C extends PagingLoadConfig>offset - the offset of the first record to returnlimit - the page sizepublic void setLimit(int limit)
PagingLoader
setLimit in interface PagingLoader<C extends PagingLoadConfig>limit - the limitpublic void setOffset(int offset)
PagingLoader
setOffset in interface PagingLoader<C extends PagingLoadConfig>offset - the offsetpublic void useLoadConfig(C loadConfig)
BaseLoader.reuseConfig
will be set to true.
useLoadConfig in class BaseListLoader<C extends PagingLoadConfig,D extends PagingLoadResult>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||