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

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.ModelReader
All Implemented Interfaces:
DataReader<ListLoadResult<? extends ModelData>>

public class ModelReader
extends java.lang.Object
implements DataReader<ListLoadResult<? extends ModelData>>

A DataReader implementation for Model instances.


Constructor Summary
ModelReader()
           
 
Method Summary
protected  ListLoadResult<ModelData> newLoadResult(java.lang.Object loadConfig, java.util.List<ModelData> models)
          Template method that provides load result.
 ListLoadResult<ModelData> read(java.lang.Object loadConfig, java.lang.Object data)
          Reads the raw data and returns the typed data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelReader

public ModelReader()
Method Detail

read

public ListLoadResult<ModelData> read(java.lang.Object loadConfig,
                                      java.lang.Object data)
Description copied from interface: DataReader
Reads the raw data and returns the typed data.

Specified by:
read in interface DataReader<ListLoadResult<? extends ModelData>>
data - the data to read
Returns:
the data

newLoadResult

protected ListLoadResult<ModelData> newLoadResult(java.lang.Object loadConfig,
                                                  java.util.List<ModelData> models)
Template method that provides load result.

Parameters:
models - the models
Returns:
the load result