Search in sources :

Example 1 with ItemNodeTabbedFormController

use of org.olat.ims.qti.editor.ItemNodeTabbedFormController in project OpenOLAT by OpenOLAT.

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 2 with ItemNodeTabbedFormController

use of org.olat.ims.qti.editor.ItemNodeTabbedFormController 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)

Aggregations

TabbedPane (org.olat.core.gui.components.tabbedpane.TabbedPane)2 TabbableController (org.olat.core.gui.control.generic.tabbable.TabbableController)2 AssertException (org.olat.core.logging.AssertException)2 ItemNodeTabbedFormController (org.olat.ims.qti.editor.ItemNodeTabbedFormController)2