Class WeeklyCalendarTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.calendar.CalendarTag
org.deltava.taglib.calendar.WeeklyCalendarTag
- All Implemented Interfaces:
Serializable,IterationTag,JspTag,Tag
A JSP tag to generate a weekly Calendar.
- 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, _tzFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.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()Closes the calendar table.intRenders the Calendar header to the JSP output stream.protected StringReturns the label for the scroll backwards link.protected StringReturns the label for the scroll forwards link.voidSets the starting date for this 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, setTopBarClassMethods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
WeeklyCalendarTag
public WeeklyCalendarTag()
-
-
Method Details
-
setStartDate
Sets the starting date for this calendar tag. This is overriden to be the first day of the week (Sunday).- Specified by:
setStartDatein classCalendarTag- Parameters:
dt- the start date- See Also:
-
getBackLabel
Returns the label for the scroll backwards link.- Specified by:
getBackLabelin classCalendarTag- Returns:
- the link label
- See Also:
-
getForwardLabel
Returns the label for the scroll forwards link.- Specified by:
getForwardLabelin classCalendarTag- Returns:
- the link label
- See Also:
-
doStartTag
Renders the Calendar header to the JSP output stream.- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin 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:
doAfterBodyin interfaceIterationTag- Overrides:
doAfterBodyin 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:
doEndTagin interfaceTag- Overrides:
doEndTagin classCalendarTag- Returns:
- TagSupport.EVAL_PAGE always
- Throws:
JspException- if an I/O error occurs
-