Search in sources :

Example 1 with LayoutMain3ColsPreviewController

use of org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController in project OpenOLAT by OpenOLAT.

the class LTIEditController method event.

/**
 * @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest, org.olat.core.gui.components.Component, org.olat.core.gui.control.Event)
 */
@Override
public void event(UserRequest ureq, Component source, Event event) {
    if (source == previewButton) {
        Controller runCtr = new LTIRunController(getWindowControl(), config, ureq, courseNode, editCourseEnv);
        previewLayoutCtr = new LayoutMain3ColsPreviewController(ureq, getWindowControl(), null, runCtr.getInitialComponent(), null);
        previewLayoutCtr.addDisposableChildController(runCtr);
        previewLayoutCtr.activate();
        listenTo(previewLayoutCtr);
    }
}
Also used : LayoutMain3ColsPreviewController(org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController) ActivateableTabbableDefaultController(org.olat.core.gui.control.generic.tabbable.ActivateableTabbableDefaultController) Controller(org.olat.core.gui.control.Controller) NodeEditController(org.olat.course.editor.NodeEditController) HighScoreEditController(org.olat.course.highscore.ui.HighScoreEditController) LayoutMain3ColsPreviewController(org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController) ConditionEditController(org.olat.course.condition.ConditionEditController)

Example 2 with LayoutMain3ColsPreviewController

use of org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController in project OpenOLAT by OpenOLAT.

the class CPUIFactory method createMainLayoutPreviewController.

/**
 * Creates a main layout controller that can be activated. It provides a
 * "close preview" link that automatically deactivates this controller form
 * the GUI stack
 * <p>
 * Use this when you want the user to be able to preview a CP
 *
 * @param ureq
 * @param wControl
 * @param rootContainer The VFS root container where the CP is found on disk
 * @param showMenu true to display the menu, false to hide the menu
 * @return A main layout preview controller
 */
public LayoutMain3ColsPreviewController createMainLayoutPreviewController(UserRequest ureq, WindowControl wControl, VFSContainer rootContainer, boolean showMenu, DeliveryOptions deliveryOptions) {
    CPDisplayController cpCtr = new CPDisplayController(ureq, wControl, rootContainer, showMenu, true, true, true, deliveryOptions, null, null, "", false);
    LayoutMain3ColsPreviewController layoutCtr = new LayoutMain3ColsPreviewController(ureq, wControl, cpCtr.getMenuComponent(), cpCtr.getInitialComponent(), rootContainer.getName());
    // cascade disposing requests
    layoutCtr.addDisposableChildController(cpCtr);
    return layoutCtr;
}
Also used : LayoutMain3ColsPreviewController(org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController)

Example 3 with LayoutMain3ColsPreviewController

use of org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController in project OpenOLAT by OpenOLAT.

the class ScormAPIandDisplayController method activate.

public void activate() {
    if (columnLayoutCtr instanceof LayoutMain3ColsPreviewController) {
        LayoutMain3ColsPreviewController ctrl = (LayoutMain3ColsPreviewController) columnLayoutCtr;
        ctrl.activate();
    } else if (columnLayoutCtr instanceof LayoutMain3ColsBackController) {
        LayoutMain3ColsBackController ctrl = (LayoutMain3ColsBackController) columnLayoutCtr;
        ctrl.activate();
    }
}
Also used : LayoutMain3ColsPreviewController(org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController) LayoutMain3ColsBackController(org.olat.core.commons.fullWebApp.LayoutMain3ColsBackController)

Example 4 with LayoutMain3ColsPreviewController

use of org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController in project openolat by klemens.

the class ScormAPIandDisplayController method activate.

public void activate() {
    if (columnLayoutCtr instanceof LayoutMain3ColsPreviewController) {
        LayoutMain3ColsPreviewController ctrl = (LayoutMain3ColsPreviewController) columnLayoutCtr;
        ctrl.activate();
    } else if (columnLayoutCtr instanceof LayoutMain3ColsBackController) {
        LayoutMain3ColsBackController ctrl = (LayoutMain3ColsBackController) columnLayoutCtr;
        ctrl.activate();
    }
}
Also used : LayoutMain3ColsPreviewController(org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController) LayoutMain3ColsBackController(org.olat.core.commons.fullWebApp.LayoutMain3ColsBackController)

Example 5 with LayoutMain3ColsPreviewController

use of org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController in project openolat by klemens.

the class CPUIFactory method createMainLayoutPreviewController.

/**
 * Creates a main layout controller that can be activated. It provides a
 * "close preview" link that automatically deactivates this controller form
 * the GUI stack
 * <p>
 * Use this when you want the user to be able to preview a CP
 *
 * @param ureq
 * @param wControl
 * @param rootContainer The VFS root container where the CP is found on disk
 * @param showMenu true to display the menu, false to hide the menu
 * @return A main layout preview controller
 */
public LayoutMain3ColsPreviewController createMainLayoutPreviewController(UserRequest ureq, WindowControl wControl, VFSContainer rootContainer, boolean showMenu, DeliveryOptions deliveryOptions) {
    CPDisplayController cpCtr = new CPDisplayController(ureq, wControl, rootContainer, showMenu, true, true, true, deliveryOptions, null, null, "", false);
    LayoutMain3ColsPreviewController layoutCtr = new LayoutMain3ColsPreviewController(ureq, wControl, cpCtr.getMenuComponent(), cpCtr.getInitialComponent(), rootContainer.getName());
    // cascade disposing requests
    layoutCtr.addDisposableChildController(cpCtr);
    return layoutCtr;
}
Also used : LayoutMain3ColsPreviewController(org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController)

Aggregations

LayoutMain3ColsPreviewController (org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController)8 LayoutMain3ColsBackController (org.olat.core.commons.fullWebApp.LayoutMain3ColsBackController)2 SinglePageController (org.olat.core.commons.modules.singlepage.SinglePageController)2 Controller (org.olat.core.gui.control.Controller)2 ActivateableTabbableDefaultController (org.olat.core.gui.control.generic.tabbable.ActivateableTabbableDefaultController)2 ConditionEditController (org.olat.course.condition.ConditionEditController)2 NodeEditController (org.olat.course.editor.NodeEditController)2 HighScoreEditController (org.olat.course.highscore.ui.HighScoreEditController)2