de.matthiasmann.twl.model
Interface TableModel.ChangeListener

All Superinterfaces:
TableColumnHeaderModel.ColumnHeaderChangeListener
Enclosing interface:
TableModel

public static interface TableModel.ChangeListener
extends TableColumnHeaderModel.ColumnHeaderChangeListener


Method Summary
 void allChanged()
          The complete table was recreated.
 void cellChanged(int row, int column)
          The specified cell has changed
 void rowsChanged(int idx, int count)
          Rows in the range idx to idx+count-1 (inclusive) have been changed.
 void rowsDeleted(int idx, int count)
          Rows that were at the range idx to idx+count-1 (inclusive) have been removed.
 void rowsInserted(int idx, int count)
          New rows have been inserted.
 
Methods inherited from interface de.matthiasmann.twl.model.TableColumnHeaderModel.ColumnHeaderChangeListener
columnDeleted, columnHeaderChanged, columnInserted
 

Method Detail

rowsInserted

void rowsInserted(int idx,
                  int count)
New rows have been inserted. The existing rows starting at idx have been shifted. The range idx to idx+count-1 (inclusive) are new.

Parameters:
idx - the first new row
count - the number of inserted rows. Must be >= 1.

rowsDeleted

void rowsDeleted(int idx,
                 int count)
Rows that were at the range idx to idx+count-1 (inclusive) have been removed. Rows starting at idx+count have been shifted to idx.

Parameters:
idx - the first removed row
count - the number of removed rows. Must be >= 1.

rowsChanged

void rowsChanged(int idx,
                 int count)
Rows in the range idx to idx+count-1 (inclusive) have been changed.

Parameters:
idx - the first changed row
count - the number of changed rows. Must be >= 1.

cellChanged

void cellChanged(int row,
                 int column)
The specified cell has changed

Parameters:
row - the row of the cell
column - the column of the cell

allChanged

void allChanged()
The complete table was recreated. There is no known relation between old and new rows or columns. Also the number of rows and or columns has changed.