com.infoviz.datamodel.table
Interface IVTableModelListener


public interface IVTableModelListener

API users can use this interface to listen to IVTableModel changes. The interface defines methods for cell level, row level, and column level changes and thus makes handling of events more efficient

$Id$ $Revision$ $Author$


Method Summary
 void columnAdded(java.lang.String columnName)
          a new column is added
 void columnRemoved(int columnIndex, java.lang.String columnName)
          a column is removed
 void rowAdded(java.util.List row)
          a new row is added to the table
 void rowRemoved(int rowIndex, java.util.List row)
          one row is removed
 void rowsRemoved(int[] rowIndices, java.util.List[] rows)
          a batch of rows are removed
 void rowsUpdated(int[] rowIndices)
          a batch of rows have changed
 void rowUpdated(int rowIndex)
          a row has changed
 void valueChanged(int rowIndex, int columnIndex)
          a cell value is changed.
 

Method Detail

rowAdded

public void rowAdded(java.util.List row)
a new row is added to the table


rowRemoved

public void rowRemoved(int rowIndex,
                       java.util.List row)
one row is removed

Parameters:
rowIndex -
row -

rowsRemoved

public void rowsRemoved(int[] rowIndices,
                        java.util.List[] rows)
a batch of rows are removed

Parameters:
rowIndices -
rows -

rowUpdated

public void rowUpdated(int rowIndex)
a row has changed

Parameters:
rowIndex -

rowsUpdated

public void rowsUpdated(int[] rowIndices)
a batch of rows have changed

Parameters:
rowIndices - the row indices

columnAdded

public void columnAdded(java.lang.String columnName)
a new column is added

Parameters:
columnName -

columnRemoved

public void columnRemoved(int columnIndex,
                          java.lang.String columnName)
a column is removed

Parameters:
columnIndex -
columnName -

valueChanged

public void valueChanged(int rowIndex,
                         int columnIndex)
a cell value is changed. This method is not called for all the cells in a row when row changes.

Parameters:
rowIndex -
columnIndex -