* Index of target Calendar.Event
* @param target
* PaintTarget
*/
protected void paintEvent(int index, PaintTarget target) throws PaintException {
CalendarEvent e = events.get(index);
target.addAttribute(VCalendarPaintable.ATTR_INDEX, index);
target.addAttribute(VCalendarPaintable.ATTR_CAPTION,
(e.getCaption() == null ? "" : e.getCaption()));
target.addAttribute(VCalendarPaintable.ATTR_DATEFROM,
df_date.format(e.getStart()));
target.addAttribute(VCalendarPaintable.ATTR_DATETO, df_date.format(e.getEnd()));
target.addAttribute(VCalendarPaintable.ATTR_TIMEFROM,
df_time.format(e.getStart()));
target.addAttribute(VCalendarPaintable.ATTR_TIMETO, df_time.format(e.getEnd()));
target.addAttribute(VCalendarPaintable.ATTR_DESCRIPTION,
e.getDescription() == null ? "" : e.getDescription());
target.addAttribute(VCalendarPaintable.ATTR_STYLE, e.getStyleName() == null ? ""
: e.getStyleName());
target.addAttribute(VCalendarPaintable.ATTR_ALLDAY, e.isAllDay());
}