Search in sources :

Example 1 with HotspotChoiceScoreController

use of org.olat.ims.qti21.ui.editor.interactions.HotspotChoiceScoreController in project OpenOLAT by OpenOLAT.

the class AssessmentItemEditorController method initHotspotEditors.

private AssessmentItemBuilder initHotspotEditors(UserRequest ureq, AssessmentItem item) {
    HotspotAssessmentItemBuilder hotspotItemBuilder = new HotspotAssessmentItemBuilder(item, qtiService.qtiSerializer());
    itemEditor = new HotspotEditorController(ureq, getWindowControl(), hotspotItemBuilder, rootDirectory, rootContainer, itemFile, restrictedEdit, readOnly);
    listenTo(itemEditor);
    scoreEditor = new HotspotChoiceScoreController(ureq, getWindowControl(), hotspotItemBuilder, itemRef, itemFile, restrictedEdit, readOnly);
    listenTo(scoreEditor);
    feedbackEditor = new FeedbacksEditorController(ureq, getWindowControl(), hotspotItemBuilder, rootDirectory, rootContainer, itemFile, FeedbacksEnabler.standardFeedbacks(), restrictedEdit, readOnly);
    listenTo(feedbackEditor);
    tabbedPane.addTab(translate("form.hotspot"), itemEditor);
    tabbedPane.addTab(translate("form.score"), scoreEditor);
    tabbedPane.addTab(translate("form.feedback"), feedbackEditor);
    return hotspotItemBuilder;
}
Also used : HotspotChoiceScoreController(org.olat.ims.qti21.ui.editor.interactions.HotspotChoiceScoreController) HotspotAssessmentItemBuilder(org.olat.ims.qti21.model.xml.interactions.HotspotAssessmentItemBuilder) HotspotEditorController(org.olat.ims.qti21.ui.editor.interactions.HotspotEditorController)

Example 2 with HotspotChoiceScoreController

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

the class AssessmentItemEditorController method initHotspotEditors.

private AssessmentItemBuilder initHotspotEditors(UserRequest ureq, AssessmentItem item) {
    HotspotAssessmentItemBuilder hotspotItemBuilder = new HotspotAssessmentItemBuilder(item, qtiService.qtiSerializer());
    itemEditor = new HotspotEditorController(ureq, getWindowControl(), hotspotItemBuilder, rootDirectory, rootContainer, itemFile, restrictedEdit, readOnly);
    listenTo(itemEditor);
    scoreEditor = new HotspotChoiceScoreController(ureq, getWindowControl(), hotspotItemBuilder, itemRef, itemFile, restrictedEdit, readOnly);
    listenTo(scoreEditor);
    feedbackEditor = new FeedbacksEditorController(ureq, getWindowControl(), hotspotItemBuilder, rootDirectory, rootContainer, itemFile, FeedbacksEnabler.standardFeedbacks(), restrictedEdit, readOnly);
    listenTo(feedbackEditor);
    tabbedPane.addTab(translate("form.hotspot"), itemEditor);
    tabbedPane.addTab(translate("form.score"), scoreEditor);
    tabbedPane.addTab(translate("form.feedback"), feedbackEditor);
    return hotspotItemBuilder;
}
Also used : HotspotChoiceScoreController(org.olat.ims.qti21.ui.editor.interactions.HotspotChoiceScoreController) HotspotAssessmentItemBuilder(org.olat.ims.qti21.model.xml.interactions.HotspotAssessmentItemBuilder) HotspotEditorController(org.olat.ims.qti21.ui.editor.interactions.HotspotEditorController)

Aggregations

HotspotAssessmentItemBuilder (org.olat.ims.qti21.model.xml.interactions.HotspotAssessmentItemBuilder)2 HotspotChoiceScoreController (org.olat.ims.qti21.ui.editor.interactions.HotspotChoiceScoreController)2 HotspotEditorController (org.olat.ims.qti21.ui.editor.interactions.HotspotEditorController)2