org.olat.group.ui.edit
Class AreasToGroupDataModel

java.lang.Object
  extended by org.olat.core.gui.components.table.DefaultTableDataModel
      extended by org.olat.group.ui.edit.AreasToGroupDataModel
All Implemented Interfaces:
TableDataModel

public class AreasToGroupDataModel
extends DefaultTableDataModel

Description:

Initial Date: Aug 30, 2004

Author:
gnaegi

Constructor Summary
AreasToGroupDataModel(java.util.List allAreas, java.util.List selectedAreas)
          Constructor for the AreasToGroupDataModel
 
Method Summary
 BGArea getArea(int row)
           
 int getColumnCount()
           
 java.lang.Object getValueAt(int row, int col)
           
 
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

AreasToGroupDataModel

public AreasToGroupDataModel(java.util.List allAreas,
                             java.util.List selectedAreas)
Constructor for the AreasToGroupDataModel

Parameters:
allAreas - List of all available areas
selectedAreas - List of all areas which are associated to the group - meaning where the checkbox will be checked
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 java.lang.Object getValueAt(int row,
                                   int col)
Specified by:
getValueAt in interface TableDataModel
Specified by:
getValueAt in class DefaultTableDataModel
Returns:
See Also:
TableDataModel.getValueAt(int, int)

getArea

public BGArea getArea(int row)
Parameters:
row -
Returns:
the area at the given row