Search in sources :

Example 26 with StaticColumnDescriptor

use of org.olat.core.gui.components.table.StaticColumnDescriptor in project openolat by klemens.

the class NotificationSubscriptionTableDataModel method addTableColumns.

/**
 * Add the column descriptors to the given table controller that matches with
 * this data model
 *
 * @param subscriptionsTableCtr
 */
void addTableColumns(TableController subscriptionsTableCtr, boolean admin) {
    subscriptionsTableCtr.addColumnDescriptor(false, new DefaultColumnDescriptor("overview.column.key", 0, "launch", getLocale()));
    subscriptionsTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("overview.column.type", 1, "launch", getLocale()));
    subscriptionsTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("overview.column.resname", 2, null, getLocale()));
    subscriptionsTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("overview.column.subidentifier", 3, null, getLocale()));
    subscriptionsTableCtr.addColumnDescriptor(admin, new DefaultColumnDescriptor("overview.column.creationDate", 4, null, getLocale()));
    subscriptionsTableCtr.addColumnDescriptor(admin, new DefaultColumnDescriptor("overview.column.lastEmail", 5, null, getLocale()));
    subscriptionsTableCtr.addColumnDescriptor(new StaticColumnDescriptor("del", "overview.column.action", trans.translate("overview.column.action.cellvalue")));
}
Also used : StaticColumnDescriptor(org.olat.core.gui.components.table.StaticColumnDescriptor) DefaultColumnDescriptor(org.olat.core.gui.components.table.DefaultColumnDescriptor)

Aggregations

StaticColumnDescriptor (org.olat.core.gui.components.table.StaticColumnDescriptor)26 DefaultColumnDescriptor (org.olat.core.gui.components.table.DefaultColumnDescriptor)18 TableController (org.olat.core.gui.components.table.TableController)16 TableGuiConfiguration (org.olat.core.gui.components.table.TableGuiConfiguration)14 CustomRenderColumnDescriptor (org.olat.core.gui.components.table.CustomRenderColumnDescriptor)10 Identity (org.olat.core.id.Identity)10 UserPropertyHandler (org.olat.user.propertyhandlers.UserPropertyHandler)10 ColumnDescriptor (org.olat.core.gui.components.table.ColumnDescriptor)6 Date (java.util.Date)4 OnlineIconRenderer (org.olat.group.ui.main.OnlineIconRenderer)4 BigDecimal (java.math.BigDecimal)2 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 List (java.util.List)2 Locale (java.util.Locale)2 ShortName (org.olat.core.gui.ShortName)2 FormItem (org.olat.core.gui.components.form.flexible.FormItem)2 FormLayoutContainer (org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer)2 CustomCellRenderer (org.olat.core.gui.components.table.CustomCellRenderer)2 DateCellRenderer (org.olat.core.gui.components.table.DateCellRenderer)2