Search in sources :

Example 1 with TimeCellRenderer

use of org.olat.course.assessment.ui.mode.TimeCellRenderer in project OpenOLAT by OpenOLAT.

the class AssessmentModeOverviewListController method initForm.

@Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    // add the table
    FlexiTableColumnModel columnsModel = FlexiTableDataModelFactory.createFlexiTableColumnModel();
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ModeCols.status, new ModeStatusCellRenderer()));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ModeCols.name));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ModeCols.begin));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ModeCols.end));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ModeCols.leadTime, new TimeCellRenderer(getTranslator())));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ModeCols.followupTime, new TimeCellRenderer(getTranslator())));
    model = new AssessmentModeOverviewListTableModel(columnsModel);
    tableEl = uifactory.addTableElement(getWindowControl(), "table", model, 10, false, getTranslator(), formLayout);
    tableEl.setCustomizeColumns(false);
    tableEl.setNumOfRowsEnabled(false);
}
Also used : ModeStatusCellRenderer(org.olat.course.assessment.ui.mode.ModeStatusCellRenderer) TimeCellRenderer(org.olat.course.assessment.ui.mode.TimeCellRenderer) FlexiTableColumnModel(org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableColumnModel) DefaultFlexiColumnModel(org.olat.core.gui.components.form.flexible.impl.elements.table.DefaultFlexiColumnModel)

Example 2 with TimeCellRenderer

use of org.olat.course.assessment.ui.mode.TimeCellRenderer in project openolat by klemens.

the class AssessmentModeOverviewListController method initForm.

@Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    // add the table
    FlexiTableColumnModel columnsModel = FlexiTableDataModelFactory.createFlexiTableColumnModel();
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ModeCols.status, new ModeStatusCellRenderer()));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ModeCols.name));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ModeCols.begin));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ModeCols.end));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ModeCols.leadTime, new TimeCellRenderer(getTranslator())));
    columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(ModeCols.followupTime, new TimeCellRenderer(getTranslator())));
    model = new AssessmentModeOverviewListTableModel(columnsModel);
    tableEl = uifactory.addTableElement(getWindowControl(), "table", model, 10, false, getTranslator(), formLayout);
    tableEl.setCustomizeColumns(false);
    tableEl.setNumOfRowsEnabled(false);
}
Also used : ModeStatusCellRenderer(org.olat.course.assessment.ui.mode.ModeStatusCellRenderer) TimeCellRenderer(org.olat.course.assessment.ui.mode.TimeCellRenderer) FlexiTableColumnModel(org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableColumnModel) DefaultFlexiColumnModel(org.olat.core.gui.components.form.flexible.impl.elements.table.DefaultFlexiColumnModel)

Aggregations

DefaultFlexiColumnModel (org.olat.core.gui.components.form.flexible.impl.elements.table.DefaultFlexiColumnModel)2 FlexiTableColumnModel (org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableColumnModel)2 ModeStatusCellRenderer (org.olat.course.assessment.ui.mode.ModeStatusCellRenderer)2 TimeCellRenderer (org.olat.course.assessment.ui.mode.TimeCellRenderer)2