com.extjs.gxt.ui.client.data
Class PagingModelMemoryProxy
java.lang.Object
com.extjs.gxt.ui.client.data.MemoryProxy<PagingLoadResult<? extends ModelData>>
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PagingModelMemoryProxy
public PagingModelMemoryProxy(java.lang.Object data)
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 instanceloadConfig
- the configcallback
- 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