*/
protected List<KalendarEvent> updateMultipleDatesInList(String subjectStr, String commentStr, String locationStr, String movementGapStr,
int numParticipants, List<KalendarEvent> dataList, BitSet selectedDates) {
for (int i = 0; i < dataList.size(); i++) {
if(selectedDates.get(i)) {
KalendarEvent oldEvent = dataList.get(i);
StringTokenizer strTok = new StringTokenizer(movementGapStr.substring(1), ":", false);
int gap = 1000*60*60*Integer.parseInt(strTok.nextToken()) + 1000*60*Integer.parseInt(strTok.nextToken());
Date newBegin, newEnd;
if(movementGapStr.startsWith("+")) {
newBegin = new Date(oldEvent.getBegin().getTime() + gap);
newEnd = new Date(oldEvent.getEnd().getTime() + gap);
} else {
newBegin = new Date(oldEvent.getBegin().getTime() - gap);
newEnd = new Date(oldEvent.getEnd().getTime() - gap);
}
KalendarEvent newEvent = new KalendarEvent(dataList.get(i).getID(), subjectStr.equals(new String()) ? oldEvent.getSubject() : subjectStr, newBegin, newEnd);
if(numParticipants != 0)
newEvent.setNumParticipants(numParticipants);
else
newEvent.setNumParticipants(oldEvent.getNumParticipants());
if(!locationStr.equals(new String()))
newEvent.setLocation(locationStr);
else
newEvent.setLocation(oldEvent.getLocation());
if(!commentStr.equals(new String()))
newEvent.setComment(commentStr);
else
newEvent.setComment(oldEvent.getComment());
newEvent.setParticipants(oldEvent.getParticipants());
newEvent.setSourceNodeId(oldEvent.getSourceNodeId());
dataList.remove(i);
dataList.add(i, newEvent);
}
}