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

All Known Implementing Classes:
AbstractTableDataModel, SimpleListTableDataModel, SimpleSetTableDataModel

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.

Version:
$Id: ITableDataModel.java 243791 2004-02-19 17:38:13Z hlship $
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.
 Iterator getRows()
          Iterates over all of the rows in the model
 void removeTableDataModelListener(ITableDataModelListener objListener)
          Method removeTableDataModelListener.
 

Method Detail

getRowCount

int getRowCount()
Method getRowCount.

Returns:
int the number of rows in the model

getRows

Iterator getRows()
Iterates over all of the rows in the model

Returns:
Iterator the iterator for access to the data

addTableDataModelListener

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

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