org.olat.admin.user
Class UserTableDataModel

java.lang.Object
  extended by org.olat.core.gui.components.table.DefaultTableDataModel
      extended by org.olat.admin.user.UserTableDataModel
All Implemented Interfaces:
TableDataModel

public class UserTableDataModel
extends DefaultTableDataModel

 Initial Date:  Jul 29, 2003

Author:
gnaegi Comment: The user table data model. This uses a list of Identities and not org.olat.user.User to build the list!

Constructor Summary
UserTableDataModel(java.util.List objects, java.util.Locale locale, boolean isAdministrativeUser)
           
 
Method Summary
 void addColumnDescriptors(TableController tableCtr, java.lang.String actionCommand)
          Add all column descriptors to this table that are available in the table model
 int getColumnCount()
           
 Identity getIdentityAt(int rowid)
          Return the selected identity
 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

UserTableDataModel

public UserTableDataModel(java.util.List objects,
                          java.util.Locale locale,
                          boolean isAdministrativeUser)
Parameters:
objects -
Method Detail

addColumnDescriptors

public void addColumnDescriptors(TableController tableCtr,
                                 java.lang.String actionCommand)
Add all column descriptors to this table that are available in the table model

Parameters:
tableCtr -
actionCommand - command fired when the login name is clicked or NULL when no command is used

getValueAt

public final 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)

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableDataModel
Specified by:
getColumnCount in class DefaultTableDataModel
Returns:
See Also:
TableDataModel.getColumnCount()

getIdentityAt

public Identity getIdentityAt(int rowid)
Return the selected identity

Parameters:
rowid -
Returns: