public static class AbstractRemoteDataSource.RequestRowsCallback<T> extends Object
AbstractRemoteDataSource.requestRows(int, int, RequestRowsCallback)
to pass data to the underlying implementation when data has been fetched.Modifier | Constructor and Description |
---|---|
protected |
RequestRowsCallback(AbstractRemoteDataSource<T> source,
Range requestedRange)
Creates a new callback
|
Modifier and Type | Method and Description |
---|---|
Range |
getRequestedRange()
Gets the range of rows that was requested.
|
void |
onResponse(List<T> rowData,
int totalSize)
Called by the
AbstractRemoteDataSource.requestRows(int, int, RequestRowsCallback)
implementation when data has been received. |
protected RequestRowsCallback(AbstractRemoteDataSource<T> source, Range requestedRange)
source
- the data source for which the request is maderequestedRange
- the requested row rangepublic void onResponse(List<T> rowData, int totalSize)
AbstractRemoteDataSource.requestRows(int, int, RequestRowsCallback)
implementation when data has been received.rowData
- a list of row objects starting at the requested offsettotalSize
- the total number of rows available at the remote endpublic Range getRequestedRange()
Copyright © 2016 Vaadin Ltd. All rights reserved.