com.extjs.gxt.ui.client.data
Class XmlPagingLoadResultReader<D extends PagingLoadResult<? extends ModelData>>
java.lang.Object
com.extjs.gxt.ui.client.data.XmlReader<D>
com.extjs.gxt.ui.client.data.XmlLoadResultReader<D>
com.extjs.gxt.ui.client.data.XmlPagingLoadResultReader<D>
- Type Parameters:
D
- the type of list load result being returned by the reader
- All Implemented Interfaces:
- DataReader<D>
public class XmlPagingLoadResultReader<D extends PagingLoadResult<? extends ModelData>>
- extends XmlLoadResultReader<D>
A XmlReader
implementation that reads XML data using a
ModelType
definition and returns a paging list load result
instance.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlPagingLoadResultReader
public XmlPagingLoadResultReader(ModelType modelType)
- Creates a new reader.
- Parameters:
modelType
- the model type definition
createReturnData
protected java.lang.Object createReturnData(java.lang.Object loadConfig,
java.util.List<ModelData> records,
int totalCount)
- Description copied from class:
XmlReader
- Responsible for the object being returned by the reader.
- Overrides:
createReturnData
in class XmlLoadResultReader<D extends PagingLoadResult<? extends ModelData>>
- Parameters:
loadConfig
- the load configrecords
- the list of modelstotalCount
- the total count
- Returns:
- the data to be returned by the reader
newLoadResult
protected BasePagingLoadResult<ModelData> newLoadResult(java.lang.Object loadConfig,
java.util.List<ModelData> models)
- Description copied from class:
XmlLoadResultReader
- Template method that provides load result.
- Overrides:
newLoadResult
in class XmlLoadResultReader<D extends PagingLoadResult<? extends ModelData>>
models
- the models
- Returns:
- the load result