com.extjs.gxt.ui.client.data
Class JsonPagingLoadResultReader<D>
java.lang.Object
com.extjs.gxt.ui.client.data.JsonReader<D>
com.extjs.gxt.ui.client.data.JsonLoadResultReader<D>
com.extjs.gxt.ui.client.data.JsonPagingLoadResultReader<D>
- Type Parameters:
D - the ListLoadResult type being returned by the reader
- All Implemented Interfaces:
- DataReader<D>
public class JsonPagingLoadResultReader<D>
- extends JsonLoadResultReader<D>
A JsonReader implementation that reads JSON data using a
ModelType definition and returns a paging list load result.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonPagingLoadResultReader
public JsonPagingLoadResultReader(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:
JsonLoadResultReader
- Responsible for the object being returned by the reader.
- Overrides:
createReturnData in class JsonLoadResultReader<D>
- 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:
JsonLoadResultReader
- Template method that provides load result.
- Overrides:
newLoadResult in class JsonLoadResultReader<D>
models - the models
- Returns:
- the load result