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

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

public class SimpleSetTableDataModel
extends AbstractTableDataModel
implements Serializable

A minimal set implementation of the ITableDataModel interface

Version:
$Id: SimpleSetTableDataModel.java,v 1.1 2003/03/05 23:03:04 hlship Exp $
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.
See Also:
ITableDataModel.getRowCount()

getRows

public Iterator getRows()
Description copied from interface: ITableDataModel
Iterates over all of the rows in the model
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)