Search in sources :

Example 1 with SPEditController

use of org.olat.course.nodes.sp.SPEditController in project OpenOLAT by OpenOLAT.

the class SPCourseNode method createEditController.

/**
 * @see org.olat.course.nodes.CourseNode#createEditController(org.olat.core.gui.UserRequest,
 *      org.olat.core.gui.control.WindowControl, org.olat.course.ICourse)
 */
@Override
public TabbableController createEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, ICourse course, UserCourseEnvironment euce) {
    updateModuleConfigDefaults(false);
    SPEditController childTabCntrllr = new SPEditController(getModuleConfiguration(), ureq, wControl, this, course, euce);
    CourseNode chosenNode = course.getEditorTreeModel().getCourseNode(euce.getCourseEditorEnv().getCurrentCourseNodeId());
    NodeEditController nodeEditController = new NodeEditController(ureq, wControl, course.getEditorTreeModel(), course, chosenNode, euce, childTabCntrllr);
    // special case: listen to sp edit controller, must be informed when the short title is being modified
    nodeEditController.addControllerListener(childTabCntrllr);
    return nodeEditController;
}
Also used : NodeEditController(org.olat.course.editor.NodeEditController) SPEditController(org.olat.course.nodes.sp.SPEditController)

Example 2 with SPEditController

use of org.olat.course.nodes.sp.SPEditController in project openolat by klemens.

the class SPCourseNode method createEditController.

/**
 * @see org.olat.course.nodes.CourseNode#createEditController(org.olat.core.gui.UserRequest,
 *      org.olat.core.gui.control.WindowControl, org.olat.course.ICourse)
 */
@Override
public TabbableController createEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, ICourse course, UserCourseEnvironment euce) {
    updateModuleConfigDefaults(false);
    SPEditController childTabCntrllr = new SPEditController(getModuleConfiguration(), ureq, wControl, this, course, euce);
    CourseNode chosenNode = course.getEditorTreeModel().getCourseNode(euce.getCourseEditorEnv().getCurrentCourseNodeId());
    NodeEditController nodeEditController = new NodeEditController(ureq, wControl, course.getEditorTreeModel(), course, chosenNode, euce, childTabCntrllr);
    // special case: listen to sp edit controller, must be informed when the short title is being modified
    nodeEditController.addControllerListener(childTabCntrllr);
    return nodeEditController;
}
Also used : NodeEditController(org.olat.course.editor.NodeEditController) SPEditController(org.olat.course.nodes.sp.SPEditController)

Aggregations

NodeEditController (org.olat.course.editor.NodeEditController)2 SPEditController (org.olat.course.nodes.sp.SPEditController)2