com.google.gwt.widgetideas.table.client
Class MutableTableModel

java.lang.Object
  extended by com.google.gwt.widgetideas.table.client.TableModel
      extended by com.google.gwt.widgetideas.table.client.MutableTableModel
Direct Known Subclasses:
MutableTableModel.TableModelAdaptor

public abstract class MutableTableModel
extends TableModel

A class to manage the connection between the local table and an external source of data that supports manipulation.


Nested Class Summary
static class MutableTableModel.TableModelAdaptor
          TableModelAdapter wraps a read-only TableModel in a MutableTableModel wrapper, throwing UnsupportedOperationException when appropriate.
 
Nested classes/interfaces inherited from class com.google.gwt.widgetideas.table.client.TableModel
TableModel.Callback, TableModel.ClientResponse, TableModel.ClientTableModel, TableModel.ListTableModel, TableModel.Request, TableModel.Response
 
Field Summary
 
Fields inherited from class com.google.gwt.widgetideas.table.client.TableModel
ALL_ROWS
 
Constructor Summary
MutableTableModel()
           
 
Method Summary
abstract  void onRowInserted(int beforeRow)
          Event fired when a row is inserted.
abstract  void onRowRemoved(int row)
          Event fired when a row is removed.
abstract  void onSetData(int firstRow, java.util.Collection rows)
          Event fired when the local data changes.
abstract  void onSetData(int row, int cell, java.lang.Object data)
          Event fired when the local data changes.
 
Methods inherited from class com.google.gwt.widgetideas.table.client.TableModel
requestRows, requestRows
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableTableModel

public MutableTableModel()
Method Detail

onRowInserted

public abstract void onRowInserted(int beforeRow)
Event fired when a row is inserted.

Parameters:
beforeRow - the row index of the new row

onRowRemoved

public abstract void onRowRemoved(int row)
Event fired when a row is removed.

Parameters:
row - the row index of the removed row

onSetData

public abstract void onSetData(int row,
                               int cell,
                               java.lang.Object data)
Event fired when the local data changes.

Parameters:
row - the row index
cell - the cell index
data - the new contents of the cell

onSetData

public abstract void onSetData(int firstRow,
                               java.util.Collection rows)
Event fired when the local data changes.

Parameters:
firstRow - the first row index
rows - the 2D collection of row data