Class WeeklyCalendarTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.calendar.CalendarTag
org.deltava.taglib.calendar.WeeklyCalendarTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

public class WeeklyCalendarTag extends CalendarTag
A JSP tag to generate a weekly Calendar.
Since:
1.0
Version:
12.3
Author:
Luke
See Also:
  • Constructor Details

    • WeeklyCalendarTag

      public WeeklyCalendarTag()
  • Method Details

    • setStartDate

      public void setStartDate(ZonedDateTime dt)
      Sets the starting date for this calendar tag. This is overriden to be the first day of the week (Sunday).
      Specified by:
      setStartDate in class CalendarTag
      Parameters:
      dt - the start date
      See Also:
    • getBackLabel

      protected String getBackLabel()
      Description copied from class: CalendarTag
      Returns the label for the scroll backwards link.
      Specified by:
      getBackLabel in class CalendarTag
      Returns:
      the link label
      See Also:
    • getForwardLabel

      protected String getForwardLabel()
      Description copied from class: CalendarTag
      Returns the label for the scroll forwards link
      Specified by:
      getForwardLabel in class CalendarTag
      Returns:
      the link label
      See Also:
    • doStartTag

      public int doStartTag() throws jakarta.servlet.jsp.JspException
      Renders the Calendar header to the JSP output stream.
      Specified by:
      doStartTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class CalendarTag
      Returns:
      TagSupport.EVAL_BODY_INCLUDE always
      Throws:
      jakarta.servlet.jsp.JspException - if an I/O error occurs
    • doAfterBody

      public int doAfterBody() throws jakarta.servlet.jsp.JspException
      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 interface jakarta.servlet.jsp.tagext.IterationTag
      Overrides:
      doAfterBody in class CalendarTag
      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.JspException
      Closes the calendar table.
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class CalendarTag
      Returns:
      TagSupport.EVAL_PAGE always
      Throws:
      jakarta.servlet.jsp.JspException - if an I/O error occurs