|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.contrib.table.model.common.AbstractTableDataModel org.apache.tapestry.contrib.table.model.simple.SimpleListTableDataModel
public class SimpleListTableDataModel
A minimal list implementation of the
ITableDataModel
interface
Constructor Summary | |
---|---|
SimpleListTableDataModel(Collection arrRows)
|
|
SimpleListTableDataModel(Iterator objRows)
|
|
SimpleListTableDataModel(List arrRows)
|
|
SimpleListTableDataModel(Object[] arrRows)
|
Method Summary | |
---|---|
void |
addRow(Object objRow)
Method addRow. |
void |
addRows(Collection arrRows)
|
Object |
getRow(int nRow)
Returns the row element at the given position |
int |
getRowCount()
Method getRowCount. |
Iterator |
getRows()
Iterates over all of the rows in the model |
Iterator |
getRows(int nFrom,
int nTo)
Returns an Iterator with the elements from the given range |
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 |
---|
public SimpleListTableDataModel(Object[] arrRows)
public SimpleListTableDataModel(List arrRows)
public SimpleListTableDataModel(Collection arrRows)
public SimpleListTableDataModel(Iterator objRows)
Method Detail |
---|
public int getRowCount()
ITableDataModel
getRowCount
in interface ITableDataModel
ITableDataModel.getRowCount()
public Object getRow(int nRow)
nRow
- the index of the element to returnpublic Iterator getRows(int nFrom, int nTo)
nFrom
- the start of the range (inclusive)nTo
- the stop of the range (exclusive)public Iterator getRows()
ITableDataModel
getRows
in interface ITableDataModel
ITableDataModel.getRows()
public void addRow(Object objRow)
objRow
- the row object to addpublic void addRows(Collection arrRows)
public void removeRow(Object objRow)
objRow
- the row object to removepublic void removeRows(Collection arrRows)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |