Class MonthlyCalendarTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.calendar.CalendarTag
org.deltava.taglib.calendar.MonthlyCalendarTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
A JSP tag to generate a monthly calendar table.
- Since:
- 1.0
- Version:
- 12.3
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class CalendarTag
_border, _contentClass, _currentDate, _day, _dayBarClass, _endDate, _entries, _intervalLength, _intervalType, _out, _showDaysOfWeek, _startDate, _table, _tableClass, _tableID, _today, _topBarClass, _tzFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintExecuted after the end of each day.intdoEndTag()Ends the Calendar tag by adding the scroll forward/backward link row.intStarts the Calendar tag by setting the current date to render.protected StringReturns the label for the scroll backwards link.protected StringReturns the label for the scroll forwards linkvoidSets the starting date for this monthly calendar tag.Methods inherited from class CalendarTag
calculateEndDate, getContentClass, getCurrentEntries, getHeaderClass, release, setBorder, setCmd, setContentClass, setDate, setDayBarClass, setEntries, setPageContext, setScrollClass, setScrollTags, setShowDaysOfWeek, setTableClass, setTableID, setTopBarClassMethods inherited from class jakarta.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:
setStartDatein classCalendarTag- Parameters:
dt- the start date- See Also:
-
getBackLabel
Description copied from class:CalendarTagReturns the label for the scroll backwards link.- Specified by:
getBackLabelin classCalendarTag- Returns:
- the link label
- See Also:
-
getForwardLabel
Description copied from class:CalendarTagReturns the label for the scroll forwards link- Specified by:
getForwardLabelin classCalendarTag- Returns:
- the link label
- See Also:
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionDescription copied from class:CalendarTagStarts the Calendar tag by setting the current date to render. Subclasses are responsible for opening and closing the table cells.- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classCalendarTag- Returns:
- TagSupport.EVAL_BODY_INCLUDE always
- Throws:
jakarta.servlet.jsp.JspException- never
-
doAfterBody
public int doAfterBody() throws jakarta.servlet.jsp.JspExceptionExecuted 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:
doAfterBodyin interfacejakarta.servlet.jsp.tagext.IterationTag- Overrides:
doAfterBodyin classCalendarTag- Returns:
- TagSupport#EVAL_BODY_AGAIN if not at end of month, otherwise TagSupport#SKIP_BODY
- Throws:
jakarta.servlet.jsp.JspException- never
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspExceptionDescription copied from class:CalendarTagEnds the Calendar tag by adding the scroll forward/backward link row. Subclasses are responsible for closing the current table row and closing the table.- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classCalendarTag- Returns:
- EVAL_PAGE always
- Throws:
jakarta.servlet.jsp.JspException- if an I/O error occurs
-