com.extjs.gxt.ui.client.data
Class BeanModelReader<C>

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.BeanModelReader<C>
Type Parameters:
C - the config type
All Implemented Interfaces:
DataReader<C,ListLoadResult<ModelData>>

public class BeanModelReader<C>
extends java.lang.Object
implements DataReader<C,ListLoadResult<ModelData>>

A DataReader for beans using a BeanModelFactory. Valid return types are a list of beans or a list load result containing a list of beans. Beans must be of the same type and beans must implement BeanModelTag or have a companion BeanModelMarker marker class.


Constructor Summary
BeanModelReader()
           
 
Method Summary
 ListLoadResult<ModelData> read(C loadConfig, java.lang.Object data)
          Reads the raw data and returns the typed data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanModelReader

public BeanModelReader()
Method Detail

read

public ListLoadResult<ModelData> read(C 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<C,ListLoadResult<ModelData>>
data - the data to read
Returns:
the data