org.apache.tapestry.contrib.table.model.simple
Class SimpleSetTableDataModel

java.lang.Object
  extended by org.apache.tapestry.contrib.table.model.common.AbstractTableDataModel
      extended by org.apache.tapestry.contrib.table.model.simple.SimpleSetTableDataModel
All Implemented Interfaces:
Serializable, ITableDataModel

public class SimpleSetTableDataModel
extends AbstractTableDataModel
implements Serializable

A minimal set implementation of the ITableDataModel interface

Version:
$Id: SimpleSetTableDataModel.java 243791 2004-02-19 17:38:13Z hlship $
Author:
mindbridge
See Also:
Serialized Form

Constructor Summary
SimpleSetTableDataModel(Set setRows)
           
 
Method Summary
 void addRow(Object objRow)
          Method addRow.
 void addRows(Collection arrRows)
           
 int getRowCount()
          Method getRowCount.
 Iterator getRows()
          Iterates over all of the rows in the model
 void removeRow(Object objRow)
          Method removeRow.
 void removeRows(Collection arrRows)
           
 
Methods inherited from class org.apache.tapestry.contrib.table.model.common.AbstractTableDataModel
addTableDataModelListener, fireTableDataModelEvent, removeTableDataModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSetTableDataModel

public SimpleSetTableDataModel(Set setRows)
Method Detail

getRowCount

public int getRowCount()
Description copied from interface: ITableDataModel
Method getRowCount.

Specified by:
getRowCount in interface ITableDataModel
Returns:
int the number of rows in the model
See Also:
ITableDataModel.getRowCount()

getRows

public Iterator getRows()
Description copied from interface: ITableDataModel
Iterates over all of the rows in the model

Specified by:
getRows in interface ITableDataModel
Returns:
Iterator the iterator for access to the data
See Also:
ITableDataModel.getRows()

addRow

public void addRow(Object objRow)
Method addRow. Adds a row object to the model at its end

Parameters:
objRow - the row object to add

addRows

public void addRows(Collection arrRows)

removeRow

public void removeRow(Object objRow)
Method removeRow. Removes a row object from the model

Parameters:
objRow - the row object to remove

removeRows

public void removeRows(Collection arrRows)