use of org.olat.course.assessment.ui.tool.event.ShowDetailsEvent in project openolat by klemens.
the class IdentityListCourseNodeController method event.
@Override
public void event(UserRequest ureq, Controller source, Event event) {
if (currentIdentityCtrl == source) {
if (event instanceof AssessmentFormEvent) {
AssessmentFormEvent aee = (AssessmentFormEvent) event;
loadModel(ureq);
if (aee.isClose()) {
stackPanel.popController(currentIdentityCtrl);
}
} else if (event == Event.CHANGED_EVENT) {
loadModel(ureq);
} else if (event == Event.CANCELLED_EVENT) {
stackPanel.popController(currentIdentityCtrl);
}
} else if (bulkToolsList != null && bulkToolsList.contains(source)) {
if (event == Event.CHANGED_EVENT) {
loadModel(ureq);
}
} else if (changeUserVisibilityCtrl == source) {
if (event == Event.DONE_EVENT) {
doSetVisibility(ureq, changeUserVisibilityCtrl.getVisibility(), changeUserVisibilityCtrl.getRows());
}
cmc.deactivate();
cleanUp();
} else if (toolsCtrl == source) {
if (event instanceof ShowDetailsEvent) {
doSelect(ureq, ((ShowDetailsEvent) event).getAssessedIdentity());
toolsCalloutCtrl.deactivate();
cleanUp();
} else if (event == Event.CHANGED_EVENT) {
loadModel(ureq);
toolsCalloutCtrl.deactivate();
cleanUp();
} else if (event == Event.CLOSE_EVENT) {
// don't dispose it, there are some popup window at work
toolsCalloutCtrl.deactivate();
} else if (event == Event.CANCELLED_EVENT) {
toolsCalloutCtrl.deactivate();
cleanUp();
}
} else if (toolsCalloutCtrl == source) {
cleanUp();
} else if (cmc == source) {
cleanUp();
}
super.event(ureq, source, event);
}
use of org.olat.course.assessment.ui.tool.event.ShowDetailsEvent in project OpenOLAT by OpenOLAT.
the class IdentityListCourseNodeController method event.
@Override
public void event(UserRequest ureq, Controller source, Event event) {
if (currentIdentityCtrl == source) {
if (event instanceof AssessmentFormEvent) {
AssessmentFormEvent aee = (AssessmentFormEvent) event;
loadModel(ureq);
if (aee.isClose()) {
stackPanel.popController(currentIdentityCtrl);
}
} else if (event == Event.CHANGED_EVENT) {
loadModel(ureq);
} else if (event == Event.CANCELLED_EVENT) {
stackPanel.popController(currentIdentityCtrl);
}
} else if (bulkToolsList != null && bulkToolsList.contains(source)) {
if (event == Event.CHANGED_EVENT) {
loadModel(ureq);
}
} else if (changeUserVisibilityCtrl == source) {
if (event == Event.DONE_EVENT) {
doSetVisibility(ureq, changeUserVisibilityCtrl.getVisibility(), changeUserVisibilityCtrl.getRows());
}
cmc.deactivate();
cleanUp();
} else if (toolsCtrl == source) {
if (event instanceof ShowDetailsEvent) {
doSelect(ureq, ((ShowDetailsEvent) event).getAssessedIdentity());
toolsCalloutCtrl.deactivate();
cleanUp();
} else if (event == Event.CHANGED_EVENT) {
loadModel(ureq);
toolsCalloutCtrl.deactivate();
cleanUp();
} else if (event == Event.CLOSE_EVENT) {
// don't dispose it, there are some popup window at work
toolsCalloutCtrl.deactivate();
} else if (event == Event.CANCELLED_EVENT) {
toolsCalloutCtrl.deactivate();
cleanUp();
}
} else if (toolsCalloutCtrl == source) {
cleanUp();
} else if (cmc == source) {
cleanUp();
}
super.event(ureq, source, event);
}
Aggregations