Package com.vaadin.client.data
Class AbstractRemoteDataSource.RequestRowsCallback<T>
- java.lang.Object
-
- com.vaadin.client.data.AbstractRemoteDataSource.RequestRowsCallback<T>
-
- Type Parameters:
T- the row type
- Enclosing class:
- AbstractRemoteDataSource<T>
public static class AbstractRemoteDataSource.RequestRowsCallback<T> extends Object
Callback used byAbstractRemoteDataSource.requestRows(int, int, RequestRowsCallback)to pass data to the underlying implementation when data has been fetched.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRequestRowsCallback(AbstractRemoteDataSource<T> source, Range requestedRange)Creates a new callback.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RangegetRequestedRange()Gets the range of rows that was requested.voidonResponse(List<T> rowData, int totalSize)Called by theAbstractRemoteDataSource.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 theAbstractRemoteDataSource.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
-
-