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

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.PagingModelMemoryProxy
All Implemented Interfaces:
DataProxy<PagingLoadResult<? extends ModelData>>

public class PagingModelMemoryProxy
extends java.lang.Object
implements DataProxy<PagingLoadResult<? extends ModelData>>

A specialized DataProxy the supports paging when the entire data set is in memory.


Constructor Summary
PagingModelMemoryProxy(java.util.List data)
           
 
Method Summary
 java.util.Comparator<java.lang.Object> getComparator()
          Returns the comparator.
 java.util.List<? extends ModelData> getData()
          Returns the data.
 void load(DataReader<PagingLoadResult<? extends ModelData>> reader, java.lang.Object loadConfig, com.google.gwt.user.client.rpc.AsyncCallback<PagingLoadResult<? extends ModelData>> callback)
          Data should be retrieved using the specified load config.
 void setComparator(java.util.Comparator<java.lang.Object> comparator)
          Sets the comparator used to sort the list of models (default to DefaultComparator).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagingModelMemoryProxy

public PagingModelMemoryProxy(java.util.List data)
Method Detail

getComparator

public java.util.Comparator<java.lang.Object> getComparator()
Returns the comparator.

Returns:
the comparator

getData

public java.util.List<? extends ModelData> getData()
Returns the data.

Returns:
the data

load

public void load(DataReader<PagingLoadResult<? extends ModelData>> reader,
                 java.lang.Object loadConfig,
                 com.google.gwt.user.client.rpc.AsyncCallback<PagingLoadResult<? extends ModelData>> callback)
Description copied from interface: DataProxy
Data should be retrieved using the specified load config.

Specified by:
load in interface DataProxy<PagingLoadResult<? extends ModelData>>
Parameters:
reader - the reader instance
loadConfig - the config
callback - the data callback

setComparator

public void setComparator(java.util.Comparator<java.lang.Object> comparator)
Sets the comparator used to sort the list of models (default to DefaultComparator).

Parameters:
comparator - the comparator