Class MonthlyCalendarTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.calendar.CalendarTag
org.deltava.taglib.calendar.MonthlyCalendarTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to generate a monthly calendar table.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.taglib.calendar.CalendarTag
_border, _contentClass, _currentDate, _day, _dayBarClass, _endDate, _entries, _intervalLength, _intervalType, _out, _showDaysOfWeek, _startDate, _table, _tableClass, _tableID, _today, _topBarClass, _tz
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Executed after the end of each day.int
doEndTag()
Closes the calendar table.int
Renders the Calendar header to the JSP output stream.protected String
Returns the label for the scroll backwards link.protected String
Returns the label for the scroll forwards link.void
Sets the starting date for this monthly calendar tag.Methods inherited from class org.deltava.taglib.calendar.CalendarTag
calculateEndDate, getContentClass, getCurrentEntries, getHeaderClass, release, setBorder, setCmd, setContentClass, setDate, setDayBarClass, setEntries, setPageContext, setScrollClass, setScrollTags, setShowDaysOfWeek, setTableClass, setTableID, setTopBarClass
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
MonthlyCalendarTag
public MonthlyCalendarTag()
-
-
Method Details
-
setStartDate
Sets the starting date for this monthly calendar tag. This is overriden to be the first day of the month.- Specified by:
setStartDate
in classCalendarTag
- Parameters:
dt
- the start date- See Also:
-
getBackLabel
Returns the label for the scroll backwards link.- Specified by:
getBackLabel
in classCalendarTag
- Returns:
- the link label
- See Also:
-
getForwardLabel
Returns the label for the scroll forwards link.- Specified by:
getForwardLabel
in classCalendarTag
- Returns:
- the link label
- See Also:
-
doStartTag
Renders the Calendar header to the JSP output stream.- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classCalendarTag
- Returns:
- TagSupport.EVAL_BODY_INCLUDE always
- Throws:
JspException
- if an I/O error occurs
-
doAfterBody
Executed after the end of each day. The day table cell is closed and the superclass tag is called to determine if further records are required.- Specified by:
doAfterBody
in interfaceIterationTag
- Overrides:
doAfterBody
in classCalendarTag
- Returns:
- TagSupport#EVAL_BODY_AGAIN if not at end of month, otherwise TagSupport#SKIP_BODY
- Throws:
JspException
- never
-
doEndTag
Closes the calendar table.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classCalendarTag
- Returns:
- TagSupport#EVAL_PAGE always
- Throws:
JspException
- if an I/O error occurs
-