to.etc.domui.component.tbl
Interface ITableModelListener<T>

All Known Implementing Classes:
CheckBoxDataTable, DataCellTable, DataTable, ExpandingEditTable, ListShuttle, MultipleSelectionDataTable, TableModelTableBase, TabularComponentBase

public interface ITableModelListener<T>

Thingy which receives events from a table model. When a model changes it must pass the changes on to it's listeners. The DataTable component for instance registers itself as a listener to it's attached model. It uses the events to re-draw the parts of the table that have changed.

Author:
Frits Jalvingh Created on Jun 6, 2008

Method Summary
 void modelChanged(ITableModel<T> model)
          Called when the entire content of the model changed.
 void rowAdded(ITableModel<T> model, int index, T value)
          Called after a row is added to the model.
 void rowDeleted(ITableModel<T> model, int index, T value)
          Called after a row has been deleted.
 void rowModified(ITableModel<T> model, int index, T value)
          Called after a row has been changed.
 

Method Detail

rowAdded

void rowAdded(ITableModel<T> model,
              int index,
              T value)
              throws java.lang.Exception
Called after a row is added to the model.

Parameters:
model -
index -
value -
Throws:
java.lang.Exception

rowDeleted

void rowDeleted(ITableModel<T> model,
                int index,
                T value)
                throws java.lang.Exception
Called after a row has been deleted.

Parameters:
model -
index - The index of the deleted row in the table.
value - The deleted value.
Throws:
java.lang.Exception

rowModified

void rowModified(ITableModel<T> model,
                 int index,
                 T value)
                 throws java.lang.Exception
Called after a row has been changed.

Parameters:
model -
index -
value -
Throws:
java.lang.Exception

modelChanged

void modelChanged(ITableModel<T> model)
Called when the entire content of the model changed. This should indicate a complete content redraw usually.

Parameters:
model -