org.olat.catalog.ui
Class CategoriesListModel

java.lang.Object
  extended by org.olat.core.gui.components.table.DefaultTableDataModel
      extended by org.olat.catalog.ui.CategoriesListModel
All Implemented Interfaces:
TableDataModel

public class CategoriesListModel
extends DefaultTableDataModel

Description:
TODO: gnaegi Class Description for CategoriesListModel

Initial Date: 30.05.2008

Author:
gnaegi

Field Summary
static java.lang.String ACTION_DELETE
           
static java.lang.String ACTION_GOTO
           
 
Constructor Summary
CategoriesListModel(java.util.List<CatalogEntry> catalogEntries, java.util.Locale locale)
          Constructor
 
Method Summary
 void addColumnDescriptors(TableController tableCtr, boolean showRemoveAction, Translator trans)
          Add the column descriptors for this table
 CatalogEntry getCatalogEntry(int row)
          Returns the catalog entry at the given 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
 

Field Detail

ACTION_GOTO

public static final java.lang.String ACTION_GOTO
See Also:
Constant Field Values

ACTION_DELETE

public static final java.lang.String ACTION_DELETE
See Also:
Constant Field Values
Constructor Detail

CategoriesListModel

public CategoriesListModel(java.util.List<CatalogEntry> catalogEntries,
                           java.util.Locale locale)
Constructor

Parameters:
catalogEntries -
locale -
Method Detail

addColumnDescriptors

public void addColumnDescriptors(TableController tableCtr,
                                 boolean showRemoveAction,
                                 Translator trans)
Add the column descriptors for this table

Parameters:
tableCtr -
showRemoveAction - true: remove link will be showed; false: remove link is not showed
trans - Translator for translating the delete action

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableDataModel
Specified by:
getColumnCount in class DefaultTableDataModel
Returns:
See Also:
DefaultTableDataModel.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:
DefaultTableDataModel.getValueAt(int, int)

getCatalogEntry

public CatalogEntry getCatalogEntry(int row)
Returns the catalog entry at the given row

Parameters:
row -
Returns: