Search in sources :

Example 21 with CloseableModalController

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();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 22 with CloseableModalController

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();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) VFSContainer(org.olat.core.util.vfs.VFSContainer) CourseEditorTreeNode(org.olat.course.tree.CourseEditorTreeNode)

Example 23 with CloseableModalController

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);
    }
}
Also used : SinglePageController(org.olat.core.commons.modules.singlepage.SinglePageController) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) FileMediaResource(org.olat.core.gui.media.FileMediaResource) FileMediaResource(org.olat.core.gui.media.FileMediaResource) MediaResource(org.olat.core.gui.media.MediaResource) ZippedDirectoryMediaResource(org.olat.fileresource.ZippedDirectoryMediaResource)

Example 24 with CloseableModalController

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();
}
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 25 with CloseableModalController

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();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) VFSContainer(org.olat.core.util.vfs.VFSContainer) File(java.io.File) LocalFolderImpl(org.olat.core.util.vfs.LocalFolderImpl) FileUploadController(org.olat.core.commons.modules.bc.FileUploadController)

Aggregations

CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)789 RepositoryEntry (org.olat.repository.RepositoryEntry)52 ArrayList (java.util.ArrayList)48 Identity (org.olat.core.id.Identity)42 ReferencableEntriesSearchController (org.olat.repository.controllers.ReferencableEntriesSearchController)38 VFSContainer (org.olat.core.util.vfs.VFSContainer)24 Component (org.olat.core.gui.components.Component)20 ContactMessage (org.olat.core.util.mail.ContactMessage)20 ContactFormController (org.olat.modules.co.ContactFormController)20 File (java.io.File)17 List (java.util.List)16 UserSearchController (org.olat.admin.user.UserSearchController)16 TableEvent (org.olat.core.gui.components.table.TableEvent)16 TableMultiSelectEvent (org.olat.core.gui.components.table.TableMultiSelectEvent)16 ContactList (org.olat.core.util.mail.ContactList)16 MailTemplate (org.olat.core.util.mail.MailTemplate)14 OLATResourceable (org.olat.core.id.OLATResourceable)12 MailNotificationEditController (org.olat.core.util.mail.MailNotificationEditController)12 OLATSecurityException (org.olat.core.logging.OLATSecurityException)10 Roles (org.olat.core.id.Roles)8