use of org.olat.ims.qti.editor.tree.ItemNode in project openolat by klemens.
the class QTIStatisticResourceResult method getController.
public Controller getController(UserRequest ureq, WindowControl wControl, TooledStackedPanel stackPanel, TreeNode selectedNode, boolean printMode) {
if (selectedNode instanceof StatisticResourceNode) {
return createAssessmentController(ureq, wControl, stackPanel, printMode);
} else if (selectedNode instanceof SectionNode) {
return createAssessmentController(ureq, wControl, stackPanel, printMode);
} else if (selectedNode instanceof ItemNode) {
Section section = null;
INode sectionNode = selectedNode.getParent();
if (sectionNode instanceof SectionNode) {
section = (Section) ((SectionNode) sectionNode).getUserObject();
}
Item item = (Item) ((ItemNode) selectedNode).getUserObject();
return createItemController(ureq, wControl, section, item, printMode);
}
return null;
}
Aggregations