Search in sources :

Example 61 with CloseableModalController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.

the class MediaCenterController method doChooseArtefactV1.

private void doChooseArtefactV1(UserRequest ureq) {
    if (importArtefactv1Ctrl != null)
        return;
    importArtefactv1Ctrl = new EPArtefactPoolRunController(ureq, this.getWindowControl(), true, false, true);
    listenTo(importArtefactv1Ctrl);
    String title = translate("import.artefactV1");
    cmc = new CloseableModalController(getWindowControl(), null, importArtefactv1Ctrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) EPArtefactPoolRunController(org.olat.portfolio.ui.EPArtefactPoolRunController)

Example 62 with CloseableModalController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.

the class MediaDetailsController method doEdit.

private void doEdit(UserRequest ureq) {
    if (mediaEditCtrl != null)
        return;
    mediaEditCtrl = handler.getEditMediaController(ureq, getWindowControl(), media);
    listenTo(mediaEditCtrl);
    String title = translate("edit");
    cmc = new CloseableModalController(getWindowControl(), null, mediaEditCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 63 with CloseableModalController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.

the class MyPageListController method doCreateNewPage.

protected void doCreateNewPage(UserRequest ureq) {
    if (newPageCtrl != null)
        return;
    newPageCtrl = new PageMetadataEditController(ureq, getWindowControl(), null, true, null, true);
    listenTo(newPageCtrl);
    String title = translate("create.new.page");
    cmc = new CloseableModalController(getWindowControl(), null, newPageCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 64 with CloseableModalController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.

the class PageEditorController method doAddElement.

private void doAddElement(UserRequest ureq, EditorFragment refenceFragment, PageElementHandler handler, PageElementTarget target) {
    if (addCtrl != null)
        return;
    if (handler instanceof InteractiveAddPageElementHandler) {
        InteractiveAddPageElementHandler interactiveHandler = (InteractiveAddPageElementHandler) handler;
        addCtrl = interactiveHandler.getAddPageElementController(ureq, getWindowControl());
        if (addCtrl == null) {
            showWarning("not.implement");
        } else {
            addCtrl.setUserObject(new AddElementInfos(refenceFragment, handler, target));
            listenTo(addCtrl);
            String title = translate("add." + handler.getType());
            cmc = new CloseableModalController(getWindowControl(), null, addCtrl.getInitialComponent(), true, title, true);
            listenTo(cmc);
            cmc.activate();
        }
    } else if (handler instanceof SimpleAddPageElementHandler) {
        SimpleAddPageElementHandler simpleHandler = (SimpleAddPageElementHandler) handler;
        doAddPageElement(ureq, simpleHandler.createPageElement(getLocale()), refenceFragment, target);
    }
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 65 with CloseableModalController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.

the class PageRunController method doRestorePage.

private void doRestorePage(UserRequest ureq) {
    restorePageCtrl = new RestorePageController(ureq, getWindowControl(), page);
    listenTo(restorePageCtrl);
    String title = translate("restore.page");
    cmc = new CloseableModalController(getWindowControl(), null, restorePageCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

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