Search in sources :

Example 1 with UploadEditorController

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

the class AssessmentItemEditorController method initUploadEditors.

private AssessmentItemBuilder initUploadEditors(UserRequest ureq, AssessmentItem item) {
    UploadAssessmentItemBuilder uploadItemBuilder = new UploadAssessmentItemBuilder(item, qtiService.qtiSerializer());
    itemEditor = new UploadEditorController(ureq, getWindowControl(), uploadItemBuilder, rootDirectory, rootContainer, itemFile, readOnly);
    listenTo(itemEditor);
    scoreEditor = new MinimalScoreController(ureq, getWindowControl(), uploadItemBuilder, itemRef, restrictedEdit, readOnly, "Test editor QTI 2.1 in detail#details_testeditor_score");
    listenTo(scoreEditor);
    feedbackEditor = new FeedbacksEditorController(ureq, getWindowControl(), uploadItemBuilder, rootDirectory, rootContainer, itemFile, FeedbacksEnabler.lobFeedbacks(), restrictedEdit, readOnly);
    listenTo(feedbackEditor);
    tabbedPane.addTab(translate("form.upload"), itemEditor);
    tabbedPane.addTab(translate("form.score"), scoreEditor);
    tabbedPane.addTab(translate("form.feedback"), feedbackEditor);
    return uploadItemBuilder;
}
Also used : UploadAssessmentItemBuilder(org.olat.ims.qti21.model.xml.interactions.UploadAssessmentItemBuilder) UploadEditorController(org.olat.ims.qti21.ui.editor.interactions.UploadEditorController)

Example 2 with UploadEditorController

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

the class AssessmentItemEditorController method initUploadEditors.

private AssessmentItemBuilder initUploadEditors(UserRequest ureq, AssessmentItem item) {
    UploadAssessmentItemBuilder uploadItemBuilder = new UploadAssessmentItemBuilder(item, qtiService.qtiSerializer());
    itemEditor = new UploadEditorController(ureq, getWindowControl(), uploadItemBuilder, rootDirectory, rootContainer, itemFile, readOnly);
    listenTo(itemEditor);
    scoreEditor = new MinimalScoreController(ureq, getWindowControl(), uploadItemBuilder, itemRef, restrictedEdit, readOnly, "Test editor QTI 2.1 in detail#details_testeditor_score");
    listenTo(scoreEditor);
    feedbackEditor = new FeedbacksEditorController(ureq, getWindowControl(), uploadItemBuilder, rootDirectory, rootContainer, itemFile, FeedbacksEnabler.lobFeedbacks(), restrictedEdit, readOnly);
    listenTo(feedbackEditor);
    tabbedPane.addTab(translate("form.upload"), itemEditor);
    tabbedPane.addTab(translate("form.score"), scoreEditor);
    tabbedPane.addTab(translate("form.feedback"), feedbackEditor);
    return uploadItemBuilder;
}
Also used : UploadAssessmentItemBuilder(org.olat.ims.qti21.model.xml.interactions.UploadAssessmentItemBuilder) UploadEditorController(org.olat.ims.qti21.ui.editor.interactions.UploadEditorController)

Aggregations

UploadAssessmentItemBuilder (org.olat.ims.qti21.model.xml.interactions.UploadAssessmentItemBuilder)2 UploadEditorController (org.olat.ims.qti21.ui.editor.interactions.UploadEditorController)2