com.google.gwt.widgetideas.table.client
Interface TableModel.Callback<R>

Type Parameters:
R - the data type of the row values
All Known Implementing Classes:
CachedTableModel.CacheCallback
Enclosing class:
TableModel<R>

public static interface TableModel.Callback<R>

Callback for TableModel. Every Request should be associated with a callback that should be called after a Response is generated.


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.
 

Method Detail

onFailure

void onFailure(java.lang.Throwable caught)
Called when an error occurs and the rows cannot be loaded.

Parameters:
caught - the exception that was thrown

onRowsReady

void onRowsReady(TableModel.Request request,
                 TableModel.Response<R> response)
Consume the data created by TableModel in response to a Request.

Parameters:
request - the request
response - the response