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);
}
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);
}
Aggregations