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