Search in sources :

Example 1 with SelectBusinessGroupController

use of org.olat.group.ui.main.SelectBusinessGroupController in project OpenOLAT by OpenOLAT.

the class EPShareListController method doSelectGroup.

protected void doSelectGroup(UserRequest ureq, EPSharePolicyWrapper wrapper) {
    removeAsListenerAndDispose(selectGroupCtrl);
    selectGroupCtrl = new SelectBusinessGroupController(ureq, getWindowControl());
    selectGroupCtrl.setUserObject(wrapper);
    listenTo(selectGroupCtrl);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), selectGroupCtrl.getInitialComponent(), true, translate("choose.group"));
    cmc.activate();
    listenTo(cmc);
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) SelectBusinessGroupController(org.olat.group.ui.main.SelectBusinessGroupController)

Example 2 with SelectBusinessGroupController

use of org.olat.group.ui.main.SelectBusinessGroupController in project openolat by klemens.

the class QuestionListController method doSelectGroup.

protected void doSelectGroup(UserRequest ureq, List<QuestionItemShort> items) {
    removeAsListenerAndDispose(selectGroupCtrl);
    selectGroupCtrl = new SelectBusinessGroupController(ureq, getWindowControl());
    selectGroupCtrl.setUserObject(items);
    listenTo(selectGroupCtrl);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), selectGroupCtrl.getInitialComponent(), true, translate("select.group"));
    cmc.setContextHelp(getTranslator(), "Data Management#qb_share");
    cmc.activate();
    listenTo(cmc);
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) SelectBusinessGroupController(org.olat.group.ui.main.SelectBusinessGroupController)

Example 3 with SelectBusinessGroupController

use of org.olat.group.ui.main.SelectBusinessGroupController in project openolat by klemens.

the class QuestionItemDetailsController method doSelectGroup.

private void doSelectGroup(UserRequest ureq, QuestionItem item) {
    removeAsListenerAndDispose(selectGroupCtrl);
    selectGroupCtrl = new SelectBusinessGroupController(ureq, getWindowControl());
    selectGroupCtrl.setUserObject(item);
    listenTo(selectGroupCtrl);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), selectGroupCtrl.getInitialComponent(), true, translate("select.group"));
    cmc.activate();
    listenTo(cmc);
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) SelectBusinessGroupController(org.olat.group.ui.main.SelectBusinessGroupController)

Example 4 with SelectBusinessGroupController

use of org.olat.group.ui.main.SelectBusinessGroupController in project OpenOLAT by OpenOLAT.

the class CourseBusinessGroupListController method doSelectGroups.

protected void doSelectGroups(UserRequest ureq) {
    removeAsListenerAndDispose(selectController);
    BusinessGroupViewFilter filter = new UnmanagedGroupFilter(BusinessGroupManagedFlag.resources);
    selectController = new SelectBusinessGroupController(ureq, getWindowControl(), filter);
    listenTo(selectController);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), selectController.getInitialComponent(), true, translate("select.group"));
    cmc.activate();
    listenTo(cmc);
}
Also used : BusinessGroupViewFilter(org.olat.group.ui.main.BusinessGroupViewFilter) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) SelectBusinessGroupController(org.olat.group.ui.main.SelectBusinessGroupController) UnmanagedGroupFilter(org.olat.group.ui.main.UnmanagedGroupFilter)

Example 5 with SelectBusinessGroupController

use of org.olat.group.ui.main.SelectBusinessGroupController in project OpenOLAT by OpenOLAT.

the class QuestionItemDetailsController method doSelectGroup.

private void doSelectGroup(UserRequest ureq, QuestionItem item) {
    removeAsListenerAndDispose(selectGroupCtrl);
    selectGroupCtrl = new SelectBusinessGroupController(ureq, getWindowControl());
    selectGroupCtrl.setUserObject(item);
    listenTo(selectGroupCtrl);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), selectGroupCtrl.getInitialComponent(), true, translate("select.group"));
    cmc.activate();
    listenTo(cmc);
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) SelectBusinessGroupController(org.olat.group.ui.main.SelectBusinessGroupController)

Aggregations

CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)8 SelectBusinessGroupController (org.olat.group.ui.main.SelectBusinessGroupController)8 BusinessGroupViewFilter (org.olat.group.ui.main.BusinessGroupViewFilter)2 UnmanagedGroupFilter (org.olat.group.ui.main.UnmanagedGroupFilter)2