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

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

public class PagingModelMemoryProxy
extends MemoryProxy<PagingLoadResult<? extends ModelData>>

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


Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.data.MemoryProxy
data
 
Constructor Summary
PagingModelMemoryProxy(java.lang.Object data)
           
 
Method Summary
 java.util.Comparator<java.lang.Object> getComparator()
          Returns the comparator.
 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 com.extjs.gxt.ui.client.data.MemoryProxy
getData, setData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagingModelMemoryProxy

public PagingModelMemoryProxy(java.lang.Object data)
Method Detail

getComparator

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

Returns:
the comparator

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>>
Overrides:
load in class MemoryProxy<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