}
}
private void renderHeader(HtmlWriter writer)
{
HtmlTag monthHeader = writer.startTag("tr");
monthHeader.beginBody();
HtmlTag thMonth = writer.startTag("th");
thMonth.addAttribute("class", this.monthClass);
thMonth.addAttribute("colspan", 8);
thMonth.beginBody();
String item = calendarInfo.getLinkText();
String text = calendarInfo.getMonthText() + " " + calendarInfo.getYearText();
if (selectMonthAction != null)
{
renderLink(writer, text, selectMonthAction, paramName, item);
text = null;
}
thMonth.endTag(text);
monthHeader.endTag();
HtmlTag weekHeader = writer.startTag("tr");
weekHeader.beginBody();
HtmlTag kwHead = writer.startTag("th");
kwHead.addAttribute("class", this.dayOfWeekClass);
kwHead.beginBody();
kwHead.endTag("KW");
for (int i = 0; i < 7; i++)
{
HtmlTag thWeekDays = writer.startTag("th");
thWeekDays.addAttribute("class", this.dayOfWeekClass);
thWeekDays.beginBody();
text = calendarInfo.getDayOfWeekText(i);
if (selectWeekdayAction != null)
{
renderLink(writer, text, selectWeekdayAction, paramName, item);
text = null;
}
thWeekDays.endTag(text);
}
weekHeader.endTag();
}