public class SimpleListTableDataModel extends AbstractTableDataModel implements java.io.Serializable
ITableDataModel
interfaceConstructor and Description |
---|
SimpleListTableDataModel(java.util.Collection arrRows) |
SimpleListTableDataModel(java.util.Iterator objRows) |
SimpleListTableDataModel(java.util.List arrRows) |
SimpleListTableDataModel(java.lang.Object[] arrRows) |
Modifier and Type | Method and Description |
---|---|
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) |
addTableDataModelListener, fireTableDataModelEvent, removeTableDataModelListener
public SimpleListTableDataModel(java.lang.Object[] arrRows)
public SimpleListTableDataModel(java.util.List arrRows)
public SimpleListTableDataModel(java.util.Collection arrRows)
public SimpleListTableDataModel(java.util.Iterator objRows)
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)