org.apache.tapestry.contrib.table.model
Interface ITableDataModel

All Known Implementing Classes:
AbstractTableDataModel

public interface ITableDataModel

A model of the table's data This model need not be used. Implementations may choose to access data via an abstraction.

Author:
mindbridge

Method Summary
 void addTableDataModelListener(ITableDataModelListener objListener)
          Method addTableDataModelListener Adds a listener that is notified when the data in the model is changed
 int getRowCount()
          Method getRowCount.
 java.util.Iterator getRows()
          Iterates over all of the rows in the model
 void removeTableDataModelListener(ITableDataModelListener objListener)
          Method removeTableDataModelListener.
 

Method Detail

getRowCount

public int getRowCount()
Method getRowCount.

Returns:
int the number of rows in the model

getRows

public java.util.Iterator getRows()
Iterates over all of the rows in the model

Returns:
Iterator the iterator for access to the data

addTableDataModelListener

public void addTableDataModelListener(ITableDataModelListener objListener)
Method addTableDataModelListener Adds a listener that is notified when the data in the model is changed

Parameters:
objListener - the listener to add

removeTableDataModelListener

public void removeTableDataModelListener(ITableDataModelListener objListener)
Method removeTableDataModelListener. Removes a listener that is notified when the data in the model is changed

Parameters:
objListener - the listener to remove