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);
}
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);
}
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);
}
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();
}
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);
}
Aggregations