use of org.olat.ims.qti21.ui.editor.interactions.DrawingEditorController in project openolat by klemens.
the class AssessmentItemEditorController method initDrawingEditors.
private AssessmentItemBuilder initDrawingEditors(UserRequest ureq, AssessmentItem item) {
DrawingAssessmentItemBuilder uploadItemBuilder = new DrawingAssessmentItemBuilder(item, qtiService.qtiSerializer());
itemEditor = new DrawingEditorController(ureq, getWindowControl(), uploadItemBuilder, rootDirectory, rootContainer, itemFile, restrictedEdit, readOnly);
listenTo(itemEditor);
scoreEditor = new MinimalScoreController(ureq, getWindowControl(), uploadItemBuilder, itemRef, restrictedEdit, readOnly, "Test and Questionnaire Editor in Detail#details_testeditor_fragetypen_ft");
listenTo(scoreEditor);
feedbackEditor = new FeedbacksEditorController(ureq, getWindowControl(), uploadItemBuilder, rootDirectory, rootContainer, itemFile, FeedbacksEnabler.lobFeedbacks(), restrictedEdit, readOnly);
listenTo(feedbackEditor);
tabbedPane.addTab(translate("form.drawing"), itemEditor);
tabbedPane.addTab(translate("form.score"), scoreEditor);
tabbedPane.addTab(translate("form.feedback"), feedbackEditor);
return uploadItemBuilder;
}
use of org.olat.ims.qti21.ui.editor.interactions.DrawingEditorController in project OpenOLAT by OpenOLAT.
the class AssessmentItemEditorController method initDrawingEditors.
private AssessmentItemBuilder initDrawingEditors(UserRequest ureq, AssessmentItem item) {
DrawingAssessmentItemBuilder uploadItemBuilder = new DrawingAssessmentItemBuilder(item, qtiService.qtiSerializer());
itemEditor = new DrawingEditorController(ureq, getWindowControl(), uploadItemBuilder, rootDirectory, rootContainer, itemFile, restrictedEdit, readOnly);
listenTo(itemEditor);
scoreEditor = new MinimalScoreController(ureq, getWindowControl(), uploadItemBuilder, itemRef, restrictedEdit, readOnly, "Test and Questionnaire Editor in Detail#details_testeditor_fragetypen_ft");
listenTo(scoreEditor);
feedbackEditor = new FeedbacksEditorController(ureq, getWindowControl(), uploadItemBuilder, rootDirectory, rootContainer, itemFile, FeedbacksEnabler.lobFeedbacks(), restrictedEdit, readOnly);
listenTo(feedbackEditor);
tabbedPane.addTab(translate("form.drawing"), itemEditor);
tabbedPane.addTab(translate("form.score"), scoreEditor);
tabbedPane.addTab(translate("form.feedback"), feedbackEditor);
return uploadItemBuilder;
}
Aggregations