com.extjs.gxt.ui.client.data
Interface PagingLoader<D extends PagingLoadResult<?>>

Type Parameters:
D - the PagingLoadResult type being returned by the loader
All Superinterfaces:
ListLoader<D>, Loader<D>, Observable
All Known Implementing Classes:
BasePagingLoader

public interface PagingLoader<D extends PagingLoadResult<?>>
extends ListLoader<D>

A loader for a pageable set of data.


Field Summary
 
Fields inherited from interface com.extjs.gxt.ui.client.data.Loader
BeforeLoad, Load, LoadException
 
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 pageSize)
          Loads the data using the specified configuration.
 void setLimit(int limit)
          Sets the limit size.
 void setOffset(int offset)
          Sets the offset.
 
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, getListeners, hasListeners, hasListeners, removeAllListeners, removeListener
 

Method Detail

getLimit

int getLimit()
Returns the current limit.

Returns:
the current limit

getOffset

int getOffset()
Returns the offset of the first record.

Returns:
the current offset

getTotalCount

int getTotalCount()
Returns the total number of models in the dataset as returned by the server.

Returns:
the number of models as passed from the server

load

void load(int offset,
          int pageSize)
Loads the data using the specified configuration.

Parameters:
offset - the offset of the first record to return
pageSize - the page size

setLimit

void setLimit(int limit)
Sets the limit size.

Parameters:
limit - the limit

setOffset

void setOffset(int offset)
Sets the offset.

Parameters:
offset - the offset