Search in sources :

Example 1 with BusinessGroupViewFilter

use of org.olat.group.ui.main.BusinessGroupViewFilter 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 2 with BusinessGroupViewFilter

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

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)

Aggregations

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