use of org.olat.course.condition.GroupSelectionController in project openolat by klemens.
the class GTAWorkflowEditController method doChooseGroup.
private void doChooseGroup(UserRequest ureq) {
removeAsListenerAndDispose(cmc);
removeAsListenerAndDispose(groupSelectionCtrl);
groupSelectionCtrl = new GroupSelectionController(ureq, getWindowControl(), true, courseEditorEnv.getCourseGroupManager(), groupKeys);
listenTo(groupSelectionCtrl);
cmc = new CloseableModalController(getWindowControl(), "close", groupSelectionCtrl.getInitialComponent());
listenTo(cmc);
cmc.activate();
}
use of org.olat.course.condition.GroupSelectionController in project openolat by klemens.
the class AssessmentModeEditController method doChooseGroups.
private void doChooseGroups(UserRequest ureq) {
if (groupChooseCtrl != null)
return;
ICourse course = CourseFactory.loadCourse(courseOres);
CourseGroupManager groupManager = course.getCourseEnvironment().getCourseGroupManager();
groupChooseCtrl = new GroupSelectionController(ureq, getWindowControl(), true, groupManager, groupKeys);
listenTo(groupChooseCtrl);
cmc = new CloseableModalController(getWindowControl(), null, groupChooseCtrl.getInitialComponent(), true, translate("popup.choosegroups"), false);
listenTo(cmc);
cmc.activate();
}
use of org.olat.course.condition.GroupSelectionController in project openolat by klemens.
the class MembersSelectorFormFragment method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (source == chooseGroupCoachesLink) {
removeAsListenerAndDispose(cmc);
removeAsListenerAndDispose(groupChooseCoaches);
groupChooseCoaches = new GroupSelectionController(ureq, getWindowControl(), true, cev.getCourseGroupManager(), getKeys(easyGroupCoachSelectionList));
listenTo(groupChooseCoaches);
String title = chooseGroupCoachesLink.getLinkTitleText();
cmc = new CloseableModalController(getWindowControl(), "close", groupChooseCoaches.getInitialComponent(), true, title);
listenTo(cmc);
cmc.activate();
setFormCanSubmit(false);
} else if (source == chooseGroupParticipantsLink) {
removeAsListenerAndDispose(cmc);
removeAsListenerAndDispose(groupChooseParticipants);
groupChooseParticipants = new GroupSelectionController(ureq, getWindowControl(), true, cev.getCourseGroupManager(), getKeys(easyGroupParticipantsSelectionList));
listenTo(groupChooseParticipants);
String title = chooseGroupParticipantsLink.getLabelText();
cmc = new CloseableModalController(getWindowControl(), "close", groupChooseParticipants.getInitialComponent(), true, title);
listenTo(cmc);
cmc.activate();
setFormCanSubmit(false);
} else if (source == chooseAreasCoachesLink) {
// already areas -> choose areas
removeAsListenerAndDispose(cmc);
removeAsListenerAndDispose(areaChooseCoaches);
areaChooseCoaches = new AreaSelectionController(ureq, getWindowControl(), true, cev.getCourseGroupManager(), getKeys(easyAreaCoachSelectionList));
listenTo(areaChooseCoaches);
String title = chooseAreasCoachesLink.getLinkTitleText();
cmc = new CloseableModalController(getWindowControl(), "close", areaChooseCoaches.getInitialComponent(), true, title);
listenTo(cmc);
cmc.activate();
setFormCanSubmit(false);
} else if (source == chooseAreasParticipantsLink) {
// already areas -> choose areas
removeAsListenerAndDispose(cmc);
removeAsListenerAndDispose(areaChooseParticipants);
areaChooseParticipants = new AreaSelectionController(ureq, getWindowControl(), true, cev.getCourseGroupManager(), getKeys(easyAreaParticipantsSelectionList));
listenTo(areaChooseParticipants);
String title = chooseAreasParticipantsLink.getLabelText();
cmc = new CloseableModalController(getWindowControl(), "close", areaChooseParticipants.getInitialComponent(), true, title);
listenTo(cmc);
cmc.activate();
setFormCanSubmit(false);
}
}
Aggregations