use of org.olat.modules.assessment.ui.event.AssessmentFormEvent in project openolat by klemens.
the class GTACoachedParticipantGradingController method event.
@Override
protected void event(UserRequest ureq, Controller source, Event event) {
if (assessmentForm == source) {
if (event instanceof AssessmentFormEvent) {
UserCourseEnvironment assessedUserCourseEnv = assessmentForm.getAssessedUserCourseEnvironment();
doGraded(ureq, assessedUserCourseEnv);
}
cmc.deactivate();
cleanUp();
} else if (cmc == source) {
cleanUp();
}
super.event(ureq, source, event);
}
use of org.olat.modules.assessment.ui.event.AssessmentFormEvent in project openolat by klemens.
the class AssessedIdentityRepositoryEntryController method event.
@Override
protected void event(UserRequest ureq, Controller source, Event event) {
if (assessmentForm == source) {
if (event instanceof AssessmentFormEvent) {
AssessmentFormEvent afe = (AssessmentFormEvent) event;
if (afe.isClose()) {
stackPanel.popController(assessmentForm);
fireEvent(ureq, Event.DONE_EVENT);
} else {
fireEvent(ureq, Event.CHANGED_EVENT);
}
} else if (event == Event.CANCELLED_EVENT) {
stackPanel.popController(assessmentForm);
}
} else if (detailsCtrl == source) {
if (event == Event.CHANGED_EVENT || event == Event.DONE_EVENT) {
assessmentForm.reloadData();
fireEvent(ureq, Event.CHANGED_EVENT);
}
}
super.event(ureq, source, event);
}
use of org.olat.modules.assessment.ui.event.AssessmentFormEvent in project openolat by klemens.
the class AssessmentForm method formOK.
@Override
protected void formOK(UserRequest ureq) {
doUpdateAssessmentData(false);
fireEvent(ureq, new AssessmentFormEvent(AssessmentFormEvent.ASSESSMENT_CHANGED, true));
}
use of org.olat.modules.assessment.ui.event.AssessmentFormEvent in project openolat by klemens.
the class AssessmentForm method formInnerEvent.
@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
if (saveAndDoneLink == source) {
if (validateFormLogic(ureq)) {
doUpdateAssessmentData(true);
fireEvent(ureq, new AssessmentFormEvent(AssessmentFormEvent.ASSESSMENT_DONE, true));
}
} else if (reopenLink == source) {
doReopen();
fireEvent(ureq, new AssessmentFormEvent(AssessmentFormEvent.ASSESSMENT_CHANGED, false));
}
super.formInnerEvent(ureq, source, event);
}
Aggregations