com.google.gwt.widgetideas.table.client
Class TableController.ControllableTableCallback

java.lang.Object
  extended by com.google.gwt.widgetideas.table.client.TableController.ControllableTableCallback
All Implemented Interfaces:
TableModel.Callback
Direct Known Subclasses:
CachedTableController.CacheCallback
Enclosing class:
TableController

public class TableController.ControllableTableCallback
extends java.lang.Object
implements TableModel.Callback

A callback that automatically updates a ControllableTable.


Constructor Summary
TableController.ControllableTableCallback(ControllableTable controllableTable)
          Constructor.
 
Method Summary
 ControllableTable getControllableTable()
          Get the ControllableTable.
 void onFailure(java.lang.Throwable caught)
          Called when an error occurs and the rows cannot be loaded.
 void onRowsReady(TableModel.Request request, TableModel.Response response)
          Consume the data created by TableModel in response to a Request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableController.ControllableTableCallback

public TableController.ControllableTableCallback(ControllableTable controllableTable)
Constructor.

Parameters:
controllableTable - the ControllableTable instance
Method Detail

getControllableTable

public ControllableTable getControllableTable()
Get the ControllableTable.

Returns:
the table

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
Parameters:
caught - the exception that was thrown
See Also:
TableModel.Callback.onFailure(Throwable)

onRowsReady

public void onRowsReady(TableModel.Request request,
                        TableModel.Response 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
Parameters:
request - the request
response - the response
See Also:
Callback#onRowsReady(Request, Response)