Search in sources :

Example 16 with CloseableModalController

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

the class TableOfContentController method doConfirmDeleteBinder.

private void doConfirmDeleteBinder(UserRequest ureq) {
    if (moveBinderToTrashCtrl != null)
        return;
    BinderStatistics stats = portfolioService.getBinderStatistics(binder);
    deleteBinderCtrl = new ConfirmDeleteBinderController(ureq, getWindowControl(), stats);
    listenTo(deleteBinderCtrl);
    String title = translate("delete.binder");
    cmc = new CloseableModalController(getWindowControl(), null, deleteBinderCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) BinderStatistics(org.olat.modules.portfolio.model.BinderStatistics)

Example 17 with CloseableModalController

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

the class TableOfContentController method doCreateNewEntry.

private void doCreateNewEntry(UserRequest ureq) {
    if (newPageCtrl != null)
        return;
    newPageCtrl = new PageMetadataEditController(ureq, getWindowControl(), binder, false, 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 18 with CloseableModalController

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

the class TableOfContentController method doEditSection.

private void doEditSection(UserRequest ureq, SectionRow sectionRow) {
    if (editSectionCtrl != null)
        return;
    editSectionCtrl = new SectionEditController(ureq, getWindowControl(), sectionRow.getSection(), secCallback);
    editSectionCtrl.setUserObject(sectionRow);
    listenTo(editSectionCtrl);
    String title = translate("section.edit");
    cmc = new CloseableModalController(getWindowControl(), null, editSectionCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 19 with CloseableModalController

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

the class TableOfContentController method doConfirmMoveToTrashBinder.

private void doConfirmMoveToTrashBinder(UserRequest ureq) {
    if (moveBinderToTrashCtrl != null)
        return;
    BinderStatistics stats = portfolioService.getBinderStatistics(binder);
    moveBinderToTrashCtrl = new ConfirmMoveBinderToTrashController(ureq, getWindowControl(), stats);
    listenTo(moveBinderToTrashCtrl);
    String title = translate("delete.binder");
    cmc = new CloseableModalController(getWindowControl(), null, moveBinderToTrashCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) BinderStatistics(org.olat.modules.portfolio.model.BinderStatistics)

Example 20 with CloseableModalController

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

the class EditorMainController method doOpenNodeTypeChooser.

private void doOpenNodeTypeChooser(UserRequest ureq) {
    removeAsListenerAndDispose(cmc);
    removeAsListenerAndDispose(chooseNodeTypeCtr);
    menuTree.getSelectedNode();
    TreeNode tn = menuTree.getSelectedNode();
    CourseEditorTreeNode cetn = tn == null ? null : cetm.getCourseEditorNodeById(tn.getIdent());
    chooseNodeTypeCtr = new ChooseNodeController(ureq, getWindowControl(), ores, cetn);
    listenTo(chooseNodeTypeCtr);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), chooseNodeTypeCtr.getInitialComponent(), true, translate("header.insertnodes"));
    listenTo(cmc);
    cmc.activate();
}
Also used : TreeNode(org.olat.core.gui.components.tree.TreeNode) CourseEditorTreeNode(org.olat.course.tree.CourseEditorTreeNode) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) CourseEditorTreeNode(org.olat.course.tree.CourseEditorTreeNode)

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