.getLocation(), manageDatesForm.getDuration(), manageDatesForm.getPause(), manageDatesForm.getBeginDate(), manageDatesForm
.getRetakes(), manageDatesForm.getNumParts(), editTableDataList, denCourseNode.getIdent());
denManager.persistDENSettings(editTableDataList, course, denCourseNode);
editDENTable.setTableDataModel(editTableData);
} else if(source == editDENTable) {
TableMultiSelectEvent tmse = (TableMultiSelectEvent)event;
selectedDates = tmse.getSelection();
//clicked button to edit one date or more dates
if (tmse.getAction().equals(DENEditTableDataModel.CHANGE_ACTION) && selectedDates.cardinality() > 0) {
if(selectedDates.cardinality() == 1) {
//if only one date is choosen, we can prefill some entries
editSingleDateForm = new DENDatesForm(ureq, getWindowControl(), getTranslator(), DENDatesForm.EDIT_SINGLE_DATE_LAYOUT);
editSingleDateForm.addControllerListener(this);
KalendarEvent calEvent = (KalendarEvent)editTableData.getObjects(selectedDates).get(0);//in this case only one date is possible
editSingleDateForm.setSubject(calEvent.getSubject());
editSingleDateForm.setComment(calEvent.getComment());
editSingleDateForm.setLocation(calEvent.getLocation());
editSingleDateForm.setNumParts(calEvent.getNumParticipants());
editSingleDateForm.setFormDate(calEvent.getBegin());
editSingleDateForm.setDuration(denManager.getDurationAsString(calEvent));
editDateModalCntrll = new CloseableModalController(getWindowControl(), "close", editSingleDateForm.getInitialComponent(), true, translate("dates.edit"));
} else if(selectedDates.cardinality() > 1) {
editMultipleDatesForm = new DENDatesForm(ureq, getWindowControl(), getTranslator(), DENDatesForm.EDIT_MULTIPLE_DATES_LAYOUT);
editMultipleDatesForm.addControllerListener(this);
editDateModalCntrll = new CloseableModalController(getWindowControl(), "close", editMultipleDatesForm.getInitialComponent(), true, translate("dates.edit"));
}
//persist dates
denManager.persistDENSettings(editTableData.getObjects(), course, denCourseNode);
editDateModalCntrll.activate();
} else if (tmse.getAction().equals(DENEditTableDataModel.DELETE_ACTION)) {
//delete selected dates
editTableData.removeEntries(tmse.getSelection());
editDENTable.setTableDataModel(editTableData);
//persist dates
denManager.persistDENSettings(editTableData.getObjects(), course, denCourseNode);
}
} else if(source == editSingleDateForm) {