Search in sources :

Example 1 with QTI21OnyxAssessmentStatisticsController

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);
}
Also used : QTI21OnyxAssessmentStatisticsController(org.olat.ims.qti.statistics.ui.QTI21OnyxAssessmentStatisticsController) Translator(org.olat.core.gui.translator.Translator) CourseNodeConfiguration(org.olat.course.nodes.CourseNodeConfiguration) QTI21OnyxAssessmentStatisticsController(org.olat.ims.qti.statistics.ui.QTI21OnyxAssessmentStatisticsController) QTI12ItemStatisticsController(org.olat.ims.qti.statistics.ui.QTI12ItemStatisticsController) Controller(org.olat.core.gui.control.Controller) QTI12AssessmentStatisticsController(org.olat.ims.qti.statistics.ui.QTI12AssessmentStatisticsController) QTI12AssessmentStatisticsController(org.olat.ims.qti.statistics.ui.QTI12AssessmentStatisticsController)

Example 2 with QTI21OnyxAssessmentStatisticsController

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);
}
Also used : QTI21OnyxAssessmentStatisticsController(org.olat.ims.qti.statistics.ui.QTI21OnyxAssessmentStatisticsController) Translator(org.olat.core.gui.translator.Translator) CourseNodeConfiguration(org.olat.course.nodes.CourseNodeConfiguration) QTI21OnyxAssessmentStatisticsController(org.olat.ims.qti.statistics.ui.QTI21OnyxAssessmentStatisticsController) QTI12ItemStatisticsController(org.olat.ims.qti.statistics.ui.QTI12ItemStatisticsController) Controller(org.olat.core.gui.control.Controller) QTI12AssessmentStatisticsController(org.olat.ims.qti.statistics.ui.QTI12AssessmentStatisticsController) QTI12AssessmentStatisticsController(org.olat.ims.qti.statistics.ui.QTI12AssessmentStatisticsController)

Aggregations

Controller (org.olat.core.gui.control.Controller)2 Translator (org.olat.core.gui.translator.Translator)2 CourseNodeConfiguration (org.olat.course.nodes.CourseNodeConfiguration)2 QTI12AssessmentStatisticsController (org.olat.ims.qti.statistics.ui.QTI12AssessmentStatisticsController)2 QTI12ItemStatisticsController (org.olat.ims.qti.statistics.ui.QTI12ItemStatisticsController)2 QTI21OnyxAssessmentStatisticsController (org.olat.ims.qti.statistics.ui.QTI21OnyxAssessmentStatisticsController)2