org.olat.repository
Class RepositoryTableModel

java.lang.Object
  extended by org.olat.core.gui.components.table.DefaultTableDataModel
      extended by org.olat.repository.RepositoryTableModel
All Implemented Interfaces:
TableDataModel

public class RepositoryTableModel
extends DefaultTableDataModel
implements TableDataModel

Initial Date: Mar 31, 2004

Author:
Mike Stock Comment:

Field Summary
static java.lang.String TABLE_ACTION_SELECT_ENTRY
          Identifies a table launch event (if clicked on an item in the name column).
static java.lang.String TABLE_ACTION_SELECT_LINK
          Identifies a table selection event (outer-left column)
 
Constructor Summary
RepositoryTableModel(Translator translator)
          Default constructor.
 
Method Summary
 void addColumnDescriptors(TableController tableCtr, java.lang.String selectButtonLabel, boolean enableDirectLaunch)
           
 java.lang.Object createCopyWithEmptyList()
           
 int getColumnCount()
           
 java.lang.Object getValueAt(int row, int col)
           
 void setEntries(java.util.List<RepositoryEntry> entries)
          Set entries to be represented by this table model.
 
Methods inherited from class org.olat.core.gui.components.table.DefaultTableDataModel
getObject, getObjects, getObjects, getRowCount, setLocale, 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
getObject, getRowCount, setObjects
 

Field Detail

TABLE_ACTION_SELECT_LINK

public static final java.lang.String TABLE_ACTION_SELECT_LINK
Identifies a table selection event (outer-left column)

See Also:
Constant Field Values

TABLE_ACTION_SELECT_ENTRY

public static final java.lang.String TABLE_ACTION_SELECT_ENTRY
Identifies a table launch event (if clicked on an item in the name column).

See Also:
Constant Field Values
Constructor Detail

RepositoryTableModel

public RepositoryTableModel(Translator translator)
Default constructor.

Parameters:
translator -
Method Detail

addColumnDescriptors

public void addColumnDescriptors(TableController tableCtr,
                                 java.lang.String selectButtonLabel,
                                 boolean enableDirectLaunch)
Parameters:
tableCtr -
selectButtonLabel - Label of action row or null if no action row should be used
enableDirectLaunch -

setEntries

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

Parameters:
entries -

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)

createCopyWithEmptyList

public java.lang.Object createCopyWithEmptyList()
Specified by:
createCopyWithEmptyList in interface TableDataModel
Overrides:
createCopyWithEmptyList in class DefaultTableDataModel