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);
}
}
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;
}
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();
}
}
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();
}
}
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;
}
Aggregations