use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class EditorMainController method doQuickPublish.
private void doQuickPublish(UserRequest ureq, ICourse course) {
removeAsListenerAndDispose(quickPublishCtr);
removeAsListenerAndDispose(cmc);
quickPublishCtr = new QuickPublishController(ureq, getWindowControl(), course);
listenTo(quickPublishCtr);
cmc = new CloseableModalController(getWindowControl(), "close", quickPublishCtr.getInitialComponent(), true, translate("pbl.quick.title"));
listenTo(cmc);
cmc.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class EditorMainController method launchSinglePagesWizard.
private void launchSinglePagesWizard(UserRequest ureq, ICourse course) {
removeAsListenerAndDispose(multiSPChooserCtr);
removeAsListenerAndDispose(cmc);
VFSContainer rootContainer = course.getCourseEnvironment().getCourseFolderContainer();
CourseEditorTreeNode selectedNode = (CourseEditorTreeNode) menuTree.getSelectedNode();
multiSPChooserCtr = new MultiSPController(ureq, getWindowControl(), rootContainer, ores, selectedNode);
listenTo(multiSPChooserCtr);
cmc = new CloseableModalController(getWindowControl(), translate("close"), multiSPChooserCtr.getInitialComponent(), true, translate("multi.sps.title"));
listenTo(cmc);
cmc.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class DirectoryController method doDownload.
private void doDownload(UserRequest ureq, File file) {
if (file.getName().endsWith(".html")) {
previewCtrl = new SinglePageController(ureq, getWindowControl(), documentsContainer, file.getName(), false);
listenTo(previewCtrl);
cmc = new CloseableModalController(getWindowControl(), translate("close"), previewCtrl.getInitialComponent(), true, file.getName());
listenTo(cmc);
cmc.activate();
} else {
MediaResource mdr = new FileMediaResource(file, true);
ureq.getDispatchResult().setResultingMediaResource(mdr);
}
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class GTAAssignedTaskController method doPreview.
private void doPreview(UserRequest ureq) {
if (viewTaskCtrl != null)
return;
VFSContainer tasksContainer = gtaManager.getTasksContainer(courseEnv, gtaNode);
viewTaskCtrl = new SinglePageController(ureq, getWindowControl(), tasksContainer, taskFile.getName(), false, null, null, TaskHelper.getStandardDeliveryOptions(), false);
listenTo(viewTaskCtrl);
cmc = new CloseableModalController(getWindowControl(), translate("close"), viewTaskCtrl.getInitialComponent(), true, taskFile.getName());
listenTo(cmc);
cmc.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.
the class DialogElementsEditController method doUpload.
private void doUpload(UserRequest ureq) {
removeAsListenerAndDispose(fileUplCtr);
VFSContainer tmpContainer = new LocalFolderImpl(new File(WebappHelper.getTmpDir(), "poster_" + UUID.randomUUID()));
fileUplCtr = new FileUploadController(getWindowControl(), tmpContainer, ureq, FolderConfig.getLimitULKB(), Quota.UNLIMITED, null, false, false, false, false, true, false);
listenTo(fileUplCtr);
cmc = new CloseableModalController(getWindowControl(), "close", fileUplCtr.getInitialComponent(), true, translate("dialog.upload.file"));
listenTo(cmc);
cmc.activate();
}
Aggregations