return;
}
super.encodeBegin(context, component);
HtmlSchedule schedule = (HtmlSchedule) component;
ResponseWriter writer = context.getResponseWriter();
//container div for the schedule grid
writer.startElement(HTML.DIV_ELEM, schedule);
writer.writeAttribute(HTML.CLASS_ATTR, "schedule-compact-" + getTheme(schedule), null);
writer.writeAttribute(
HTML.STYLE_ATTR, "border-style: none; overflow: hidden;", null
);
writer.startElement(HTML.TABLE_ELEM, schedule);
writer.writeAttribute(HTML.CLASS_ATTR, getStyleClass(schedule, "month"), null);
writer.writeAttribute(
HTML.STYLE_ATTR, "position: relative; left: 0px; top: 0px; width: 100%;",
null
);
writer.writeAttribute(HTML.CELLPADDING_ATTR, "0", null);
writer.writeAttribute(HTML.CELLSPACING_ATTR, "1", null);
writer.writeAttribute("border", "0", null);
writer.writeAttribute(HTML.WIDTH_ATTR, "100%", null);
writer.startElement(HTML.TBODY_ELEM, schedule);
Calendar cal = GregorianCalendar.getInstance();
cal.setTime(schedule.getModel().getSelectedDate());
int selectedMonth = cal.get(Calendar.MONTH);
for (
Iterator dayIterator = schedule.getModel().iterator();
dayIterator.hasNext();
) {
ScheduleDay day = (ScheduleDay) dayIterator.next();
cal.setTime(day.getDate());