use of org.olat.core.gui.components.rating.RatingCellRenderer in project OpenOLAT by OpenOLAT.
the class RatingMetadataController method initForm.
@Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
FlexiTableColumnModel ratingInfosColumnsModel = FlexiTableDataModelFactory.createFlexiTableColumnModel();
ratingInfosColumnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel("rating.creation.date", 0));
ratingInfosColumnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel("rating", 1, new RatingCellRenderer(5)));
ratingInfosModel = new RatingInfosDataModel(ratingInfosColumnsModel);
ratingInfosTable = uifactory.addTableElement(getWindowControl(), "details_ratings", ratingInfosModel, getTranslator(), formLayout);
ratingInfosTable.setCustomizeColumns(false);
ratingInfosTable.setEmtpyTableMessageKey("rating.empty.table");
}
use of org.olat.core.gui.components.rating.RatingCellRenderer in project openolat by klemens.
the class RatingMetadataController method initForm.
@Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
FlexiTableColumnModel ratingInfosColumnsModel = FlexiTableDataModelFactory.createFlexiTableColumnModel();
ratingInfosColumnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel("rating.creation.date", 0));
ratingInfosColumnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel("rating", 1, new RatingCellRenderer(5)));
ratingInfosModel = new RatingInfosDataModel(ratingInfosColumnsModel);
ratingInfosTable = uifactory.addTableElement(getWindowControl(), "details_ratings", ratingInfosModel, getTranslator(), formLayout);
ratingInfosTable.setCustomizeColumns(false);
ratingInfosTable.setEmtpyTableMessageKey("rating.empty.table");
}
Aggregations