com.google.gwt.widgetideas.table.client
Interface ControllableTable

All Superinterfaces:
SourceTableDataRequestEvents
All Known Implementing Classes:
EditablePagingGrid, PagingGrid

public interface ControllableTable
extends SourceTableDataRequestEvents

Event listener interface for TableController events.


Method Summary
 void insertAbsoluteRow(int beforeRow, int numRows)
          Insert a row into the table relative to the total number of rows.
 void removeAbsoluteRow(int row, int numRows)
          Remove a row from the table relative to the total number of rows.
 void setData(int row, int column, java.lang.Object data)
          Set some arbitrary data in a specific cell.
 void setData(int firstRow, java.util.Iterator rows, java.util.List rowValues)
          Set a block of data.
 void setNumRows(int numRows)
          Set the total number of rows.
 void setPagingFailure(java.lang.Throwable caught)
          Set the failure condition associated with a page request.
 
Methods inherited from interface com.google.gwt.widgetideas.table.client.SourceTableDataRequestEvents
addTableDataRequestListener, removeTableDataRequestListener
 

Method Detail

insertAbsoluteRow

void insertAbsoluteRow(int beforeRow,
                       int numRows)
Insert a row into the table relative to the total number of rows.

Parameters:
beforeRow - the row index
numRows - the new number of rows

removeAbsoluteRow

void removeAbsoluteRow(int row,
                       int numRows)
Remove a row from the table relative to the total number of rows.

Parameters:
row - the row index
numRows - the new number of rows

setData

void setData(int row,
             int column,
             java.lang.Object data)
Set some arbitrary data in a specific cell.

Parameters:
row - the row index
column - the column index
data - the data to set

setData

void setData(int firstRow,
             java.util.Iterator rows,
             java.util.List rowValues)
Set a block of data. This method is used when responding to data requests. This method takes an iterator of Collections, where each collection represents one row of data starting with the first row.

Parameters:
firstRow - the row index
rows - the 2D Iterator of data
rowValues - the values associated with the rows

setNumRows

void setNumRows(int numRows)
Set the total number of rows.

Parameters:
numRows - the new number of rows

setPagingFailure

void setPagingFailure(java.lang.Throwable caught)
Set the failure condition associated with a page request.

Parameters:
caught - the exception that led to the failure