com.vaadin.client.data
Class AbstractRemoteDataSource.RequestRowsCallback<T>

java.lang.Object
  extended by com.vaadin.client.data.AbstractRemoteDataSource.RequestRowsCallback<T>
Enclosing class:
AbstractRemoteDataSource<T>

public static class AbstractRemoteDataSource.RequestRowsCallback<T>
extends java.lang.Object

Callback used by AbstractRemoteDataSource.requestRows(int, int, RequestRowsCallback) to pass data to the underlying implementation when data has been fetched.


Constructor Summary
protected AbstractRemoteDataSource.RequestRowsCallback(AbstractRemoteDataSource<T> source, com.vaadin.shared.ui.grid.Range requestedRange)
          Creates a new callback
 
Method Summary
 com.vaadin.shared.ui.grid.Range getRequestedRange()
          Gets the range of rows that was requested.
 void onResponse(java.util.List<T> rowData, int totalSize)
          Called by the AbstractRemoteDataSource.requestRows(int, int, RequestRowsCallback) implementation when data has been received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRemoteDataSource.RequestRowsCallback

protected AbstractRemoteDataSource.RequestRowsCallback(AbstractRemoteDataSource<T> source,
                                                       com.vaadin.shared.ui.grid.Range requestedRange)
Creates a new callback

Parameters:
source - the data source for which the request is made
requestedRange - the requested row range
Method Detail

onResponse

public void onResponse(java.util.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 offset
totalSize - the total number of rows available at the remote end

getRequestedRange

public com.vaadin.shared.ui.grid.Range getRequestedRange()
Gets the range of rows that was requested.

Returns:
the requsted row range


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.