com.extjs.gxt.ui.client.data
Class BasePagingLoadConfig

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.BaseModelData
      extended by com.extjs.gxt.ui.client.data.BaseListLoadConfig
          extended by com.extjs.gxt.ui.client.data.BasePagingLoadConfig
All Implemented Interfaces:
ListLoadConfig, ModelData, PagingLoadConfig, java.io.Serializable

public class BasePagingLoadConfig
extends BaseListLoadConfig
implements PagingLoadConfig, java.io.Serializable

Default implementation of the PagingLoadConfig.

See Also:
Serialized Form

Constructor Summary
BasePagingLoadConfig()
          Creates a new paging load config.
BasePagingLoadConfig(int offset, int limit)
          Creates a new paging load config.
 
Method Summary
 int getLimit()
          The number of records being requested.
 int getOffset()
          The offset for the first record to retrieve.
 void setLimit(int limit)
          Sets the config limit.
 void setOffset(int offset)
          Sets the configs offset.
 
Methods inherited from class com.extjs.gxt.ui.client.data.BaseListLoadConfig
getParams, getSortInfo, setParams, setSortInfo
 
Methods inherited from class com.extjs.gxt.ui.client.data.BaseModelData
get, get, getProperties, getPropertyNames, isAllowNestedValues, remove, set, setAllowNestedValues, setProperties
 
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.ListLoadConfig
getSortInfo, setSortInfo
 

Constructor Detail

BasePagingLoadConfig

public BasePagingLoadConfig()
Creates a new paging load config.


BasePagingLoadConfig

public BasePagingLoadConfig(int offset,
                            int limit)
Creates a new paging load config.

Parameters:
offset - the offset
limit - the limit
Method Detail

setLimit

public void setLimit(int limit)
Sets the config limit.

Specified by:
setLimit in interface PagingLoadConfig
Parameters:
limit - the limit

setOffset

public void setOffset(int offset)
Sets the configs offset.

Specified by:
setOffset in interface PagingLoadConfig
Parameters:
offset - the offset

getLimit

public int getLimit()
Description copied from interface: PagingLoadConfig
The number of records being requested.

Specified by:
getLimit in interface PagingLoadConfig

getOffset

public int getOffset()
Description copied from interface: PagingLoadConfig
The offset for the first record to retrieve.

Specified by:
getOffset in interface PagingLoadConfig