org.olat.instantMessaging.ui
Class ConnectedUsersTableModel

java.lang.Object
  extended by org.olat.core.gui.components.table.BaseTableDataModelWithoutFilter
      extended by org.olat.instantMessaging.ui.ConnectedUsersTableModel
All Implemented Interfaces:
TableDataModel

public class ConnectedUsersTableModel
extends BaseTableDataModelWithoutFilter
implements TableDataModel

Description: Table model for the connected users list

Author:
guido

Field Summary
static java.lang.String TABLE_ACTION_LAUNCH_CLIENT
          Identifies a table launch event (if clicked on an item in the name, prename or username column).
 
Constructor Summary
ConnectedUsersTableModel(Translator translator, boolean chatEnabled)
          Default constructor.
 
Method Summary
 void addColumnDescriptors(TableController tableCtr)
           
 int getColumnCount()
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int col)
           
 void setEntries(java.util.List entries)
          Set entries to be represented by this table model.
 
Methods inherited from class org.olat.core.gui.components.table.BaseTableDataModelWithoutFilter
createCopyWithEmptyList, getObject, setObjects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.olat.core.gui.components.table.TableDataModel
createCopyWithEmptyList, getObject, setObjects
 

Field Detail

TABLE_ACTION_LAUNCH_CLIENT

public static final java.lang.String TABLE_ACTION_LAUNCH_CLIENT
Identifies a table launch event (if clicked on an item in the name, prename or username column).

See Also:
Constant Field Values
Constructor Detail

ConnectedUsersTableModel

public ConnectedUsersTableModel(Translator translator,
                                boolean chatEnabled)
Default constructor.

Parameters:
translator -
Method Detail

addColumnDescriptors

public void addColumnDescriptors(TableController tableCtr)
Parameters:
tableCtr -
selectButtonLabel - Label of action row or null if no action row should be used
enableDirectLaunch -

setEntries

public void setEntries(java.util.List entries)
Set entries to be represented by this table model.

Parameters:
entries -

getColumnCount

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

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableDataModel
Returns:
See Also:
TableDataModel.getRowCount()

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
Specified by:
getValueAt in interface TableDataModel
Returns:
See Also:
TableDataModel.getValueAt(int, int)