Search in sources :

Example 6 with TabbableController

use of org.olat.core.gui.control.generic.tabbable.TabbableController in project openolat by klemens.

the class ItemNode method createEditTabbedPane.

/**
 * @see org.olat.ims.qti.editor.tree.GenericQtiNode#createEditTabbedPane(org.olat.core.gui.UserRequest,
 *      org.olat.core.gui.control.WindowControl,
 *      org.olat.core.gui.translator.Translator, QTIEditorMainController)
 */
public TabbedPane createEditTabbedPane(UserRequest ureq, WindowControl wControl, Translator trnsltr, QTIEditorMainController editorMainController) {
    if (myTabbedPane == null) {
        try {
            myTabbedPane = new TabbedPane("tabbedPane", ureq.getLocale());
            TabbableController tabbCntrllr = new ItemNodeTabbedFormController(item, qtiPackage, ureq, wControl, editorMainController.isRestrictedEdit());
            tabbCntrllr.addTabs(myTabbedPane);
            tabbCntrllr.addControllerListener(editorMainController);
        } catch (Exception e) {
            myTabbedPane = null;
            log.warn("Cannot create editor for the current item - item.getIdent(): " + item.getIdent());
        }
    }
    return myTabbedPane;
}
Also used : ItemNodeTabbedFormController(org.olat.ims.qti.editor.ItemNodeTabbedFormController) TabbedPane(org.olat.core.gui.components.tabbedpane.TabbedPane) TabbableController(org.olat.core.gui.control.generic.tabbable.TabbableController) AssertException(org.olat.core.logging.AssertException)

Example 7 with TabbableController

use of org.olat.core.gui.control.generic.tabbable.TabbableController in project OpenOLAT by OpenOLAT.

the class AssessmentNode method createEditTabbedPane.

/**
 * @see org.olat.ims.qti.editor.tree.GenericQtiNode#createEditTabbedPane(org.olat.core.gui.UserRequest,
 *      org.olat.core.gui.control.WindowControl,
 *      org.olat.core.gui.translator.Translator, QTIEditorMainController)
 */
public TabbedPane createEditTabbedPane(UserRequest ureq, WindowControl wControl, Translator trnsltr, QTIEditorMainController editorMainController) {
    if (myTabbedPane == null) {
        myTabbedPane = new TabbedPane("tabbedPane", ureq.getLocale());
        TabbableController tabbCntrllr = new AssessmentController(assmnt, qtiPackage, ureq, wControl, editorMainController.isRestrictedEdit());
        tabbCntrllr.addTabs(myTabbedPane);
        tabbCntrllr.addControllerListener(editorMainController);
    }
    return myTabbedPane;
}
Also used : AssessmentController(org.olat.ims.qti.editor.AssessmentController) TabbedPane(org.olat.core.gui.components.tabbedpane.TabbedPane) TabbableController(org.olat.core.gui.control.generic.tabbable.TabbableController)

Example 8 with TabbableController

use of org.olat.core.gui.control.generic.tabbable.TabbableController in project OpenOLAT by OpenOLAT.

the class IQSELFCourseNode 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) {
    TabbableController childTabCntrllr = new IQEditController(ureq, wControl, stackPanel, course, this, euce);
    CourseNode chosenNode = course.getEditorTreeModel().getCourseNode(euce.getCourseEditorEnv().getCurrentCourseNodeId());
    return new NodeEditController(ureq, wControl, course.getEditorTreeModel(), course, chosenNode, euce, childTabCntrllr);
}
Also used : NodeEditController(org.olat.course.editor.NodeEditController) IQEditController(org.olat.course.nodes.iq.IQEditController) TabbableController(org.olat.core.gui.control.generic.tabbable.TabbableController)

Example 9 with TabbableController

use of org.olat.core.gui.control.generic.tabbable.TabbableController in project OpenOLAT by OpenOLAT.

the class PodcastCourseNode method createEditController.

/**
 * @see org.olat.course.nodes.AbstractAccessableCourseNode#createEditController(org.olat.core.gui.UserRequest,
 *      org.olat.core.gui.control.WindowControl, org.olat.course.ICourse,
 *      org.olat.course.run.userview.UserCourseEnvironment)
 */
@Override
public TabbableController createEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, ICourse course, UserCourseEnvironment euce) {
    CourseNode chosenNode = course.getEditorTreeModel().getCourseNode(euce.getCourseEditorEnv().getCurrentCourseNodeId());
    TabbableController podcastChildController = new PodcastNodeEditController(this, course, euce, ureq, wControl);
    return new NodeEditController(ureq, wControl, course.getEditorTreeModel(), course, chosenNode, euce, podcastChildController);
}
Also used : PodcastNodeEditController(org.olat.course.nodes.feed.podcast.PodcastNodeEditController) FeedNodeEditController(org.olat.course.nodes.feed.FeedNodeEditController) NodeEditController(org.olat.course.editor.NodeEditController) TabbableController(org.olat.core.gui.control.generic.tabbable.TabbableController) PodcastNodeEditController(org.olat.course.nodes.feed.podcast.PodcastNodeEditController)

Example 10 with TabbableController

use of org.olat.core.gui.control.generic.tabbable.TabbableController in project OpenOLAT by OpenOLAT.

the class IQSURVCourseNode 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) {
    TabbableController childTabCntrllr = new IQEditController(ureq, wControl, stackPanel, course, this, euce);
    CourseNode chosenNode = course.getEditorTreeModel().getCourseNode(euce.getCourseEditorEnv().getCurrentCourseNodeId());
    return new NodeEditController(ureq, wControl, course.getEditorTreeModel(), course, chosenNode, euce, childTabCntrllr);
}
Also used : NodeEditController(org.olat.course.editor.NodeEditController) IQEditController(org.olat.course.nodes.iq.IQEditController) TabbableController(org.olat.core.gui.control.generic.tabbable.TabbableController)

Aggregations

TabbableController (org.olat.core.gui.control.generic.tabbable.TabbableController)14 NodeEditController (org.olat.course.editor.NodeEditController)10 IQEditController (org.olat.course.nodes.iq.IQEditController)6 TabbedPane (org.olat.core.gui.components.tabbedpane.TabbedPane)4 FeedNodeEditController (org.olat.course.nodes.feed.FeedNodeEditController)4 AssertException (org.olat.core.logging.AssertException)2 BlogNodeEditController (org.olat.course.nodes.feed.blog.BlogNodeEditController)2 PodcastNodeEditController (org.olat.course.nodes.feed.podcast.PodcastNodeEditController)2 AssessmentController (org.olat.ims.qti.editor.AssessmentController)2 ItemNodeTabbedFormController (org.olat.ims.qti.editor.ItemNodeTabbedFormController)2