Search in sources :

Example 11 with SinglePageController

use of org.olat.core.commons.modules.singlepage.SinglePageController in project openolat by klemens.

the class SubmitDocumentsController method doView.

private void doView(UserRequest ureq, String filename) {
    if (viewDocCtrl != null)
        return;
    viewDocCtrl = new SinglePageController(ureq, getWindowControl(), documentsContainer, filename, false);
    listenTo(viewDocCtrl);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), viewDocCtrl.getInitialComponent(), true, filename);
    listenTo(cmc);
    cmc.activate();
}
Also used : SinglePageController(org.olat.core.commons.modules.singlepage.SinglePageController) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 12 with SinglePageController

use of org.olat.core.commons.modules.singlepage.SinglePageController in project OpenOLAT by OpenOLAT.

the class LinkFileCombiCalloutController method doShowPreview.

private void doShowPreview(UserRequest ureq) {
    SinglePageController previewController = new SinglePageController(ureq, getWindowControl(), file.getParentContainer(), file.getName(), false);
    previewLayoutCtr = new LayoutMain3ColsPreviewController(ureq, getWindowControl(), null, previewController.getInitialComponent(), null);
    previewLayoutCtr.addDisposableChildController(previewController);
    previewLayoutCtr.activate();
    listenTo(previewLayoutCtr);
}
Also used : SinglePageController(org.olat.core.commons.modules.singlepage.SinglePageController) LayoutMain3ColsPreviewController(org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController)

Example 13 with SinglePageController

use of org.olat.core.commons.modules.singlepage.SinglePageController in project OpenOLAT by OpenOLAT.

the class GTAAvailableTaskController method doPreview.

private void doPreview(UserRequest ureq, String filename) {
    if (filename != null && filename.endsWith(".html")) {
        VFSContainer tasksContainer = gtaManager.getTasksContainer(courseEnv, gtaNode);
        previewCtrl = new SinglePageController(ureq, getWindowControl(), tasksContainer, filename, false);
        listenTo(previewCtrl);
        cmc = new CloseableModalController(getWindowControl(), translate("close"), previewCtrl.getInitialComponent(), true, filename);
        listenTo(cmc);
        cmc.activate();
    }
}
Also used : SinglePageController(org.olat.core.commons.modules.singlepage.SinglePageController) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) VFSContainer(org.olat.core.util.vfs.VFSContainer)

Example 14 with SinglePageController

use of org.olat.core.commons.modules.singlepage.SinglePageController in project OpenOLAT by OpenOLAT.

the class DocumentPoolInfoPageController method doViewInfoPage.

private void doViewInfoPage(UserRequest ureq) {
    cleanUp();
    VFSContainer container = docPoolModule.getInfoPageContainer();
    indexCtrl = new SinglePageController(ureq, getWindowControl(), container, "index.html", false);
    listenTo(indexCtrl);
    mainVC.put("index", indexCtrl.getInitialComponent());
}
Also used : SinglePageController(org.olat.core.commons.modules.singlepage.SinglePageController) VFSContainer(org.olat.core.util.vfs.VFSContainer)

Example 15 with SinglePageController

use of org.olat.core.commons.modules.singlepage.SinglePageController in project openolat by klemens.

the class InfoPageController method doViewInfoPage.

private void doViewInfoPage(UserRequest ureq) {
    cleanUp();
    VFSContainer container = qpoolModule.getInfoPageContainer();
    indexCtrl = new SinglePageController(ureq, getWindowControl(), container, "index.html", false);
    listenTo(indexCtrl);
    mainVC.put("index", indexCtrl.getInitialComponent());
}
Also used : SinglePageController(org.olat.core.commons.modules.singlepage.SinglePageController) VFSContainer(org.olat.core.util.vfs.VFSContainer)

Aggregations

SinglePageController (org.olat.core.commons.modules.singlepage.SinglePageController)18 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)8 VFSContainer (org.olat.core.util.vfs.VFSContainer)8 LayoutMain3ColsController (org.olat.core.commons.fullWebApp.LayoutMain3ColsController)4 UserRequest (org.olat.core.gui.UserRequest)4 Controller (org.olat.core.gui.control.Controller)4 WindowControl (org.olat.core.gui.control.WindowControl)4 ControllerCreator (org.olat.core.gui.control.creator.ControllerCreator)4 CloneController (org.olat.core.gui.control.generic.clone.CloneController)4 CloneLayoutControllerCreatorCallback (org.olat.core.gui.control.generic.clone.CloneLayoutControllerCreatorCallback)4 CloneableController (org.olat.core.gui.control.generic.clone.CloneableController)4 DeliveryOptions (org.olat.core.gui.control.generic.iframe.DeliveryOptions)4 OLATResourceable (org.olat.core.id.OLATResourceable)4 AssertException (org.olat.core.logging.AssertException)4 CustomLinkTreeModel (org.olat.core.commons.controllers.linkchooser.CustomLinkTreeModel)2 LayoutMain3ColsPreviewController (org.olat.core.commons.fullWebApp.LayoutMain3ColsPreviewController)2 BasicController (org.olat.core.gui.control.controller.BasicController)2 TabbableController (org.olat.core.gui.control.generic.tabbable.TabbableController)2 FileMediaResource (org.olat.core.gui.media.FileMediaResource)2 MediaResource (org.olat.core.gui.media.MediaResource)2