* org.olat.core.gui.components.Component, org.olat.core.gui.control.Event)
*/
public void event(UserRequest ureq, Controller source, Event event) {
if (source == readerCondContr) {
if (event == Event.CHANGED_EVENT) {
Condition cond = readerCondContr.getCondition();
courseNode.setPreConditionReader(cond);
fireEvent(ureq, NodeEditController.NODECONFIG_CHANGED_EVENT);
}else if(event instanceof BGContextEvent) {
//fired by condition edit controllers if areas / groups created
//updated other condition controllers -> e.g. change create link to choose
posterCondContr.updateGroupsAndAreasCheck();
moderatorCondContr.updateGroupsAndAreasCheck();
}
} else if (source == posterCondContr) {
if (event == Event.CHANGED_EVENT) {
Condition cond = posterCondContr.getCondition();
courseNode.setPreConditionPoster(cond);
fireEvent(ureq, NodeEditController.NODECONFIG_CHANGED_EVENT);
}else if(event instanceof BGContextEvent) {
//fired by condition edit controllers if areas / groups created
//updated other condition controllers -> e.g. change create link to choose
readerCondContr.updateGroupsAndAreasCheck();
moderatorCondContr.updateGroupsAndAreasCheck();
}
} else if (source == moderatorCondContr) {
if (event == Event.CHANGED_EVENT) {
Condition cond = moderatorCondContr.getCondition();
courseNode.setPreConditionModerator(cond);
fireEvent(ureq, NodeEditController.NODECONFIG_CHANGED_EVENT);
}else if(event instanceof BGContextEvent) {
//fired by condition edit controllers if areas / groups created
//updated other condition controllers -> e.g. change create link to choose