org.olat.core.gui.components.table
Class GenericObjectArrayTableDataModel
java.lang.Object
org.olat.core.gui.components.table.DefaultTableDataModel
org.olat.core.gui.components.table.GenericObjectArrayTableDataModel
- All Implemented Interfaces:
- TableDataModel
public class GenericObjectArrayTableDataModel
- extends DefaultTableDataModel
Description:
Generic table data model for Object[]
Initial Date: Feb 24, 2005
- Author:
- gnaegi
|
Method Summary |
int |
getColumnCount()
|
java.lang.Object |
getValueAt(int row,
int col)
3 columns:
first is the title of the message
second the (name, firstname) of the creator
third lastModifiedDate |
void |
setValueAt(java.lang.Object o,
int row,
int col)
Set a value of a field in the table data model |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericObjectArrayTableDataModel
public GenericObjectArrayTableDataModel(java.util.List objectArrays,
int columnCount)
- Parameters:
objectArrays - List of Object[] containing whatever data displayable by the tablecolumnCount - Number of elements withing the Object[]
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount in interface TableDataModel- Specified by:
getColumnCount in class DefaultTableDataModel
- Returns:
- See Also:
TableDataModel.getColumnCount()
getValueAt
public final java.lang.Object getValueAt(int row,
int col)
- 3 columns:
first is the title of the message
second the (name, firstname) of the creator
third lastModifiedDate
- Specified by:
getValueAt in interface TableDataModel- Specified by:
getValueAt in class DefaultTableDataModel
- Returns:
- See Also:
TableDataModel.getValueAt(int, int)
setValueAt
public final void setValueAt(java.lang.Object o,
int row,
int col)
- Set a value of a field in the table data model
- Parameters:
o - row - col -