com.vaadin.client.data.
Class AbstractRemoteDataSource.RequestRowsCallback<T>
- java.lang.Object
-
- com.vaadin.client.data.AbstractRemoteDataSource.RequestRowsCallback<T>
-
Enclosing class:
public static class AbstractRemoteDataSource.RequestRowsCallback<T> extends Object
Callback used by
AbstractRemoteDataSource.requestRows(int, int, RequestRowsCallback)
to pass data to the underlying implementation when data has been fetched.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RequestRowsCallback(AbstractRemoteDataSource<T> source, Range requestedRange)
Creates a new callback
-
Method Summary
All Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
RequestRowsCallback
protected RequestRowsCallback(AbstractRemoteDataSource<T> source, Range requestedRange)
Creates a new callback
Parameters:
source
- the data source for which the request is maderequestedRange
- the requested row range
-
-
Method Detail
-
onResponse
public void onResponse(List<T> rowData, int totalSize)
Called by the
AbstractRemoteDataSource.requestRows(int, int, RequestRowsCallback)
implementation when data has been received.Parameters:
rowData
- a list of row objects starting at the requested offsettotalSize
- the total number of rows available at the remote end
-
getRequestedRange
public Range getRequestedRange()
Gets the range of rows that was requested.
Returns:
the requsted row range
-
-