org.apache.tapestry.contrib.table.model.simple
Class SimpleListTableDataModel
java.lang.Object
|
+--org.apache.tapestry.contrib.table.model.common.AbstractTableDataModel
|
+--org.apache.tapestry.contrib.table.model.simple.SimpleListTableDataModel
- All Implemented Interfaces:
- ITableDataModel, Serializable
- public class SimpleListTableDataModel
- extends AbstractTableDataModel
- implements Serializable
A minimal list implementation of the
ITableDataModel
interface
- Version:
- $Id: SimpleListTableDataModel.java,v 1.1 2003/03/05 23:03:04 hlship Exp $
- Author:
- mindbridge
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleListTableDataModel
public SimpleListTableDataModel(Object[] arrRows)
SimpleListTableDataModel
public SimpleListTableDataModel(List arrRows)
getRowCount
public int getRowCount()
- Description copied from interface:
ITableDataModel
- Method getRowCount.
- See Also:
ITableDataModel.getRowCount()
getRow
public Object getRow(int nRow)
- Returns the row element at the given position
- Parameters:
nRow
- the index of the element to return
getRows
public Iterator getRows(int nFrom,
int nTo)
- Returns an Iterator with the elements from the given range
- Parameters:
nFrom
- the start of the range (inclusive)nTo
- the stop of the range (exclusive)
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)