Search in sources :

Example 6 with MatchScoreController

use of org.olat.ims.qti21.ui.editor.interactions.MatchScoreController in project openolat by klemens.

the class AssessmentItemEditorController method initMatchChoiceEditors.

private AssessmentItemBuilder initMatchChoiceEditors(UserRequest ureq, AssessmentItem item) {
    MatchAssessmentItemBuilder matchItemBuilder = new MatchAssessmentItemBuilder(item, qtiService.qtiSerializer());
    itemEditor = new MatchEditorController(ureq, getWindowControl(), matchItemBuilder, rootDirectory, rootContainer, itemFile, restrictedEdit, readOnly);
    listenTo(itemEditor);
    scoreEditor = new MatchScoreController(ureq, getWindowControl(), matchItemBuilder, itemRef, itemFile, true, restrictedEdit, readOnly);
    listenTo(scoreEditor);
    feedbackEditor = new FeedbacksEditorController(ureq, getWindowControl(), matchItemBuilder, rootDirectory, rootContainer, itemFile, FeedbacksEnabler.standardFeedbacks(), restrictedEdit, readOnly);
    listenTo(feedbackEditor);
    tabbedPane.addTab(translate("form.match"), itemEditor);
    tabbedPane.addTab(translate("form.score"), scoreEditor);
    tabbedPane.addTab(translate("form.feedback"), feedbackEditor);
    return matchItemBuilder;
}
Also used : MatchScoreController(org.olat.ims.qti21.ui.editor.interactions.MatchScoreController) MatchAssessmentItemBuilder(org.olat.ims.qti21.model.xml.interactions.MatchAssessmentItemBuilder) MatchEditorController(org.olat.ims.qti21.ui.editor.interactions.MatchEditorController)

Aggregations

MatchAssessmentItemBuilder (org.olat.ims.qti21.model.xml.interactions.MatchAssessmentItemBuilder)6 MatchScoreController (org.olat.ims.qti21.ui.editor.interactions.MatchScoreController)6 MatchEditorController (org.olat.ims.qti21.ui.editor.interactions.MatchEditorController)4 TrueFalseEditorController (org.olat.ims.qti21.ui.editor.interactions.TrueFalseEditorController)2