org.olat.core.gui.components.table
Class GenericObjectArrayTableDataModel

java.lang.Object
  extended by org.olat.core.gui.components.table.DefaultTableDataModel
      extended by 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

Constructor Summary
GenericObjectArrayTableDataModel(java.util.List objectArrays, int columnCount)
           
 
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 org.olat.core.gui.components.table.DefaultTableDataModel
createCopyWithEmptyList, getObject, getObjects, getObjects, getRowCount, setLocale, setObjects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericObjectArrayTableDataModel

public GenericObjectArrayTableDataModel(java.util.List objectArrays,
                                        int columnCount)
Parameters:
objectArrays - List of Object[] containing whatever data displayable by the table
columnCount - Number of elements withing the Object[]
Method Detail

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 -