com.google.gwt.widgetideas.table.client
Class ClientTableModel<R>

java.lang.Object
  extended by com.google.gwt.widgetideas.table.client.TableModel<R>
      extended by com.google.gwt.widgetideas.table.client.ClientTableModel<R>
Type Parameters:
R - the data type of the row values
All Implemented Interfaces:
SourceTableModelEvents
Direct Known Subclasses:
ListTableModel

public abstract class ClientTableModel<R>
extends TableModel<R>

A TableModel used when the data source can be accessed synchronously.


Nested Class Summary
static class ClientTableModel.ClientResponse<R>
          A Response that can be used when the response is not going over a RPC request.
 
Nested classes/interfaces inherited from class com.google.gwt.widgetideas.table.client.TableModel
TableModel.Callback<R>, TableModel.ColumnSortInfo, TableModel.ColumnSortList, TableModel.Request, TableModel.Response<R>, TableModel.SerializableResponse<R extends java.io.Serializable>
 
Field Summary
 
Fields inherited from class com.google.gwt.widgetideas.table.client.TableModel
ALL_ROWS, UNKNOWN_ROW_COUNT
 
Constructor Summary
ClientTableModel()
           
 
Method Summary
abstract  java.lang.Object getCell(int rowNum, int colNum)
          Get the value for a given cell.
 void requestRows(TableModel.Request request, TableModel.Callback<R> callback)
          See TableModel.
 
Methods inherited from class com.google.gwt.widgetideas.table.client.TableModel
addTableModelListener, getRowCount, insertRow, onRowInserted, onRowRemoved, onSetData, removeRow, removeTableModelListener, setData, setRowCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientTableModel

public ClientTableModel()
Method Detail

getCell

public abstract java.lang.Object getCell(int rowNum,
                                         int colNum)
Get the value for a given cell. Return null if no more values are available.

Parameters:
rowNum - the row index
colNum - the column index
Returns:
the value at the given row and column

requestRows

public void requestRows(TableModel.Request request,
                        TableModel.Callback<R> callback)
See TableModel.

Specified by:
requestRows in class TableModel<R>
Parameters:
request - the TableModel.Request for row data
callback - the TableModel.Callback to use for the TableModel.Response