com.google.gwt.widgetideas.table.client
Class MutableTableModel
java.lang.Object
com.google.gwt.widgetideas.table.client.TableModel
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MutableTableModel
public MutableTableModel()
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 indexcell
- the cell indexdata
- 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 indexrows
- the 2D collection of row data