use of org.olat.ims.qti.statistics.ui.QTI21OnyxAssessmentStatisticsController in project OpenOLAT by OpenOLAT.
the class QTIStatisticResourceResult method createAssessmentController.
private Controller createAssessmentController(UserRequest ureq, WindowControl wControl, TooledStackedPanel stackPanel, boolean printMode) {
Controller ctrl;
if (type == null) {
Translator translator = Util.createPackageTranslator(QTI12AssessmentStatisticsController.class, ureq.getLocale());
String text = translator.translate("error.notfound.text");
ctrl = MessageUIFactory.createErrorMessage(ureq, wControl, null, text);
} else if (type == QTIType.onyx) {
ctrl = new QTI21OnyxAssessmentStatisticsController(ureq, wControl, this, printMode);
} else {
ctrl = new QTI12AssessmentStatisticsController(ureq, wControl, stackPanel, this, printMode);
}
CourseNodeConfiguration cnConfig = CourseNodeFactory.getInstance().getCourseNodeConfigurationEvenForDisabledBB(courseNode.getType());
String iconCssClass = cnConfig.getIconCSSClass();
return TitledWrapperHelper.getWrapper(ureq, wControl, ctrl, courseNode, iconCssClass);
}
use of org.olat.ims.qti.statistics.ui.QTI21OnyxAssessmentStatisticsController in project openolat by klemens.
the class QTIStatisticResourceResult method createAssessmentController.
private Controller createAssessmentController(UserRequest ureq, WindowControl wControl, TooledStackedPanel stackPanel, boolean printMode) {
Controller ctrl;
if (type == null) {
Translator translator = Util.createPackageTranslator(QTI12AssessmentStatisticsController.class, ureq.getLocale());
String text = translator.translate("error.notfound.text");
ctrl = MessageUIFactory.createErrorMessage(ureq, wControl, null, text);
} else if (type == QTIType.onyx) {
ctrl = new QTI21OnyxAssessmentStatisticsController(ureq, wControl, this, printMode);
} else {
ctrl = new QTI12AssessmentStatisticsController(ureq, wControl, stackPanel, this, printMode);
}
CourseNodeConfiguration cnConfig = CourseNodeFactory.getInstance().getCourseNodeConfigurationEvenForDisabledBB(courseNode.getType());
String iconCssClass = cnConfig.getIconCSSClass();
return TitledWrapperHelper.getWrapper(ureq, wControl, ctrl, courseNode, iconCssClass);
}
Aggregations