com.sencha.gxt.data.shared.loader
Class PagingLoadResultBean<Data>

java.lang.Object
  extended by com.sencha.gxt.data.shared.loader.ListLoadResultBean<Data>
      extended by com.sencha.gxt.data.shared.loader.PagingLoadResultBean<Data>
Type Parameters:
Data - the type of data for this list load result
All Implemented Interfaces:
ListLoadResult<Data>, PagingLoadResult<Data>, java.io.Serializable

public class PagingLoadResultBean<Data>
extends ListLoadResultBean<Data>
implements PagingLoadResult<Data>

A ListLoadResultBean that adds support for paging properties as described by PagingLoadResult.

See Also:
Serialized Form

Constructor Summary
PagingLoadResultBean()
          Creates an empty paging load result bean.
PagingLoadResultBean(java.util.List<Data> list, int totalLength, int offset)
          Creates a new paging list load result.
 
Method Summary
 int getOffset()
          Returns the current offset of the results.
 int getTotalLength()
          Returns the total count.
 void setOffset(int offset)
          Sets the offset.
 void setTotalLength(int totalLength)
          Sets the total length.
 
Methods inherited from class com.sencha.gxt.data.shared.loader.ListLoadResultBean
getData, setData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sencha.gxt.data.shared.loader.ListLoadResult
getData
 

Constructor Detail

PagingLoadResultBean

public PagingLoadResultBean()
Creates an empty paging load result bean.


PagingLoadResultBean

public PagingLoadResultBean(java.util.List<Data> list,
                            int totalLength,
                            int offset)
Creates a new paging list load result.

Parameters:
list - the data
totalLength - the total length
offset - the paging offset
Method Detail

getOffset

public int getOffset()
Description copied from interface: PagingLoadResult
Returns the current offset of the results.

Specified by:
getOffset in interface PagingLoadResult<Data>
Returns:
the offset

getTotalLength

public int getTotalLength()
Description copied from interface: PagingLoadResult
Returns the total count. This value will not equal the number of records being returned when paging is used.

Specified by:
getTotalLength in interface PagingLoadResult<Data>
Returns:
the total count

setOffset

public void setOffset(int offset)
Description copied from interface: PagingLoadResult
Sets the offset.

Specified by:
setOffset in interface PagingLoadResult<Data>
Parameters:
offset - the offset

setTotalLength

public void setTotalLength(int totalLength)
Description copied from interface: PagingLoadResult
Sets the total length.

Specified by:
setTotalLength in interface PagingLoadResult<Data>
Parameters:
totalLength - the total length


Copyright © 2012. All Rights Reserved.