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