Search in sources :

Example 1 with ChecklistEditController

use of de.bps.course.nodes.cl.ChecklistEditController in project openolat by klemens.

the class ChecklistCourseNode method createEditController.

@Override
public TabbableController createEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, ICourse course, UserCourseEnvironment euce) {
    CourseNode chosenNode = course.getEditorTreeModel().getCourseNode(euce.getCourseEditorEnv().getCurrentCourseNodeId());
    ChecklistEditController editController = new ChecklistEditController(ureq, wControl, this, course, euce);
    getModuleConfiguration().set(CONF_COURSE_ID, course.getResourceableId());
    getModuleConfiguration().set(CONF_COURSE_NODE_ID, chosenNode.getIdent());
    NodeEditController nodeEditController = new NodeEditController(ureq, wControl, course.getEditorTreeModel(), course, chosenNode, euce, editController);
    nodeEditController.addControllerListener(editController);
    return nodeEditController;
}
Also used : NodeEditController(org.olat.course.editor.NodeEditController) CourseNode(org.olat.course.nodes.CourseNode) AbstractAccessableCourseNode(org.olat.course.nodes.AbstractAccessableCourseNode) ChecklistEditController(de.bps.course.nodes.cl.ChecklistEditController)

Example 2 with ChecklistEditController

use of de.bps.course.nodes.cl.ChecklistEditController in project OpenOLAT by OpenOLAT.

the class ChecklistCourseNode method createEditController.

@Override
public TabbableController createEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, ICourse course, UserCourseEnvironment euce) {
    CourseNode chosenNode = course.getEditorTreeModel().getCourseNode(euce.getCourseEditorEnv().getCurrentCourseNodeId());
    ChecklistEditController editController = new ChecklistEditController(ureq, wControl, this, course, euce);
    getModuleConfiguration().set(CONF_COURSE_ID, course.getResourceableId());
    getModuleConfiguration().set(CONF_COURSE_NODE_ID, chosenNode.getIdent());
    NodeEditController nodeEditController = new NodeEditController(ureq, wControl, course.getEditorTreeModel(), course, chosenNode, euce, editController);
    nodeEditController.addControllerListener(editController);
    return nodeEditController;
}
Also used : NodeEditController(org.olat.course.editor.NodeEditController) CourseNode(org.olat.course.nodes.CourseNode) AbstractAccessableCourseNode(org.olat.course.nodes.AbstractAccessableCourseNode) ChecklistEditController(de.bps.course.nodes.cl.ChecklistEditController)

Aggregations

ChecklistEditController (de.bps.course.nodes.cl.ChecklistEditController)2 NodeEditController (org.olat.course.editor.NodeEditController)2 AbstractAccessableCourseNode (org.olat.course.nodes.AbstractAccessableCourseNode)2 CourseNode (org.olat.course.nodes.CourseNode)2