Search in sources :

Example 81 with CloseableModalController

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

the class QuestionListController method doSelectPool.

protected void doSelectPool(UserRequest ureq, List<QuestionItemShort> items) {
    removeAsListenerAndDispose(selectPoolCtrl);
    selectPoolCtrl = new PoolsController(ureq, getWindowControl());
    selectPoolCtrl.setUserObject(items);
    listenTo(selectPoolCtrl);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), selectPoolCtrl.getInitialComponent(), true, translate("select.pool"));
    cmc.activate();
    listenTo(cmc);
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 82 with CloseableModalController

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

the class QuestionListController method doChooseCollection.

private void doChooseCollection(UserRequest ureq, List<QuestionItemShort> items) {
    removeAsListenerAndDispose(chooseCollectionCtrl);
    chooseCollectionCtrl = new CollectionListController(ureq, getWindowControl());
    chooseCollectionCtrl.setUserObject(items);
    listenTo(chooseCollectionCtrl);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), chooseCollectionCtrl.getInitialComponent(), true, translate("add.to.list"));
    cmc.activate();
    listenTo(cmc);
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 83 with CloseableModalController

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

the class QuestionListController method doShowCreateTestOverview.

private void doShowCreateTestOverview(UserRequest ureq, List<QuestionItemShort> items, ExportFormatOptions format) {
    removeAsListenerAndDispose(createTestOverviewCtrl);
    createTestOverviewCtrl = new CreateTestOverviewController(ureq, getWindowControl(), items, format);
    listenTo(createTestOverviewCtrl);
    removeAsListenerAndDispose(cmc);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), createTestOverviewCtrl.getInitialComponent(), true, translate("create.test"));
    cmc.activate();
    listenTo(cmc);
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 84 with CloseableModalController

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

the class QEducationalContextsAdminController method doOpenTranslationTool.

private void doOpenTranslationTool(UserRequest ureq, QEducationalContext row) {
    String key2Translate = "item.level." + row.getLevel().toLowerCase();
    String[] keys2Translate = { key2Translate };
    singleKeyTrnsCtrl = new SingleKeyTranslatorController(ureq, getWindowControl(), keys2Translate, QuestionsController.class);
    listenTo(singleKeyTrnsCtrl);
    removeAsListenerAndDispose(cmc);
    cmc = new CloseableModalController(getWindowControl(), "close", singleKeyTrnsCtrl.getInitialComponent(), true, translate("translation"));
    listenTo(cmc);
    cmc.activate();
}
Also used : SingleKeyTranslatorController(org.olat.core.util.i18n.ui.SingleKeyTranslatorController) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) QuestionsController(org.olat.modules.qpool.ui.QuestionsController)

Example 85 with CloseableModalController

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

the class QuestionPoolMainEditorController method doShareItemsOptions.

private void doShareItemsOptions(UserRequest ureq, List<QuestionItemShort> items, List<BusinessGroup> groups, List<Pool> pools) {
    removeAsListenerAndDispose(cmc);
    removeAsListenerAndDispose(shareItemsCtrl);
    shareItemsCtrl = new ShareItemOptionController(ureq, getWindowControl(), items, groups, pools);
    listenTo(shareItemsCtrl);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), shareItemsCtrl.getInitialComponent(), true, translate("share.item"));
    cmc.activate();
    listenTo(cmc);
}
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