Search in sources :

Example 6 with CloseableModalController

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

the class AbstractPageListController method doEditAssignment.

protected void doEditAssignment(UserRequest ureq, PortfolioElementRow row) {
    if (editAssignmentCtrl != null)
        return;
    Assignment assignment = row.getAssignment();
    editAssignmentCtrl = new AssignmentEditController(ureq, getWindowControl(), assignment);
    listenTo(editAssignmentCtrl);
    String title = translate("edit.assignment");
    cmc = new CloseableModalController(getWindowControl(), null, editAssignmentCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : Assignment(org.olat.modules.portfolio.Assignment) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 7 with CloseableModalController

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

the class BinderListController method doNewBinder.

private void doNewBinder(UserRequest ureq) {
    if (newBinderCtrl != null)
        return;
    newBinderCtrl = new BinderMetadataEditController(ureq, getWindowControl(), null);
    listenTo(newBinderCtrl);
    String title = translate("create.new.binder");
    cmc = new CloseableModalController(getWindowControl(), null, newBinderCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 8 with CloseableModalController

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

the class BinderListController method doNewBinderFromCourse.

private void doNewBinderFromCourse(UserRequest ureq) {
    if (searchCourseTemplateCtrl != null)
        return;
    removeAsListenerAndDispose(searchCourseTemplateCtrl);
    searchCourseTemplateCtrl = new CourseTemplateSearchController(ureq, getWindowControl());
    listenTo(searchCourseTemplateCtrl);
    String title = translate("create.empty.binder.from.template");
    cmc = new CloseableModalController(getWindowControl(), title, searchCourseTemplateCtrl.getInitialComponent(), true, title);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 9 with CloseableModalController

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

the class BinderDeliveryOptionsController method doConfirmDeleteOption.

private void doConfirmDeleteOption(UserRequest ureq) {
    if (deleteOptionCtrl != null)
        return;
    deleteOptionCtrl = new ConfirmDeleteOptionController(ureq, getWindowControl());
    listenTo(deleteOptionCtrl);
    String title = translate("create.new.binder");
    deleteOptionCmcCtrl = new CloseableModalController(getWindowControl(), null, deleteOptionCtrl.getInitialComponent(), true, title, true);
    listenTo(deleteOptionCmcCtrl);
    deleteOptionCmcCtrl.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 10 with CloseableModalController

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

the class BinderPageListController method doCreateNewAssignment.

private void doCreateNewAssignment(UserRequest ureq) {
    if (newAssignmentCtrl != null)
        return;
    newAssignmentCtrl = new AssignmentEditController(ureq, getWindowControl(), binder);
    listenTo(newAssignmentCtrl);
    String title = translate("create.new.assignment");
    cmc = new CloseableModalController(getWindowControl(), null, newAssignmentCtrl.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