|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Calendar Decorator defines the interface for decoraing a rendered calendar. Provide the
fully qualifed classpath of an implementation as the decorator
attribute.
org.calendartag.decorators.DefaultCalendarDecorator
Method Summary | |
java.lang.String |
getCalendarTitle()
Gets the calendar's title. |
java.lang.String |
getDay(java.lang.String url)
Gets the contents of an unempty day. |
java.lang.String |
getDayStyleClass(boolean isOddMonth,
boolean isSelectedDay)
Called when a day cell is being rendered. |
java.lang.String |
getEmptyDay()
Gets the contents of an empty day. |
java.lang.String |
getNextLink(java.lang.String url)
Gets the next link as HTML |
java.lang.String |
getPreviousLink(java.lang.String url)
Gets the previous link as HTML |
java.lang.String |
getWeekdayTitle(int day)
Gets the day of the week's abreviation for each column. |
void |
initializeCalendar()
Called before any of the calendar is displayed. |
void |
setCalendar(java.util.Calendar calendar)
Defines a Calendar object that will always reflect the current day being rendered. |
void |
setEnd(java.util.Calendar end)
Sets the end date of the calendar's range |
void |
setPageContext(javax.servlet.jsp.PageContext pageContext)
Defines the pageContext which should bea useful elsewhere. |
void |
setStart(java.util.Calendar start)
Sets the start date of the calendar's range |
Method Detail |
public java.lang.String getDayStyleClass(boolean isOddMonth, boolean isSelectedDay)
isOddMonth
- true if the month is oddisSelectedDay
- true if the day is selected
public void initializeCalendar()
public java.lang.String getCalendarTitle()
public java.lang.String getWeekdayTitle(int day)
day
- the day as an integer, 1-7 monday-friday
public java.lang.String getEmptyDay()
public java.lang.String getDay(java.lang.String url)
setCalendar
will have previously
been called, this object will contain the information required to know which day it is.
url
- the url that can be used to set the current day to focus
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
pageContext
which should bea useful elsewhere.
pageContext
- the pageContext of the HttpServletRequest
public void setCalendar(java.util.Calendar calendar)
Calendar
object that will always reflect the current day being rendered.
calendar
- a Calendar
objectpublic java.lang.String getPreviousLink(java.lang.String url)
url
- the url that the previous link should point to
public java.lang.String getNextLink(java.lang.String url)
url
- the url that the next link should point to
public void setStart(java.util.Calendar start)
start
- the start datepublic void setEnd(java.util.Calendar end)
end
- the end date
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |