String timeto = eventUIDL.getStringAttribute(ATTR_TIMETO);
String desc = eventUIDL.getStringAttribute(ATTR_DESCRIPTION);
String style = eventUIDL.getStringAttribute(ATTR_STYLE);
boolean allDay = eventUIDL.getBooleanAttribute(ATTR_ALLDAY);
CalendarEvent e = new CalendarEvent();
e.setCaption(caption);
e.setDescription(desc);
e.setIndex(index);
e.setEnd(dateformat_date.parse(dateto));
e.setStart(dateformat_date.parse(datefrom));
e.setStartTime(dateformat_datetime.parse(datefrom + " " + timefrom));
e.setEndTime(dateformat_datetime.parse(dateto + " " + timeto));
e.setStyleName(style);
e.setFormat24h(is24HFormat());
e.setAllDay(allDay);
events.add(e);
registerEventToolTip(e);
}