com.google.gwt.widgetideas.table.client
Class CachedTableModel.CacheCallback

java.lang.Object
  extended by com.google.gwt.widgetideas.table.client.CachedTableModel.CacheCallback
All Implemented Interfaces:
TableModel.Callback<R>
Enclosing class:
CachedTableModel<R>

public class CachedTableModel.CacheCallback
extends java.lang.Object
implements TableModel.Callback<R>

A callback that retrieves data from the cache.


Constructor Summary
CachedTableModel.CacheCallback(TableModel.Request request, TableModel.Callback<R> callback, int startRow, int numRows)
          Constructor.
 
Method Summary
 void onFailure(java.lang.Throwable caught)
          Called when an error occurs and the rows cannot be loaded.
 void onRowsReady(TableModel.Request request, TableModel.Response<R> response)
          Consume the data created by TableModel in response to a Request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedTableModel.CacheCallback

public CachedTableModel.CacheCallback(TableModel.Request request,
                                      TableModel.Callback<R> callback,
                                      int startRow,
                                      int numRows)
Constructor.

Parameters:
callback - The actual callback from the requestor
startRow - The actual first requested row
numRows - The actual number of requested rows
Method Detail

onFailure

public void onFailure(java.lang.Throwable caught)
Description copied from interface: TableModel.Callback
Called when an error occurs and the rows cannot be loaded.

Specified by:
onFailure in interface TableModel.Callback<R>
Parameters:
caught - the exception that was thrown

onRowsReady

public void onRowsReady(TableModel.Request request,
                        TableModel.Response<R> response)
Description copied from interface: TableModel.Callback
Consume the data created by TableModel in response to a Request.

Specified by:
onRowsReady in interface TableModel.Callback<R>
Parameters:
request - the request
response - the response