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

public class MonthlyCalendarTag extends CalendarTag
A JSP tag to generate a monthly calendar table.
Since:
1.0
Version:
12.3
Author:
Luke
See Also:
  • Constructor Details

    • MonthlyCalendarTag

      public MonthlyCalendarTag()
  • Method Details

    • setStartDate

      public void setStartDate(ZonedDateTime dt)
      Sets the starting date for this monthly calendar tag. This is overriden to be the first day of the month.
      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
      Description copied from class: CalendarTag
      Starts the Calendar tag by setting the current date to render. Subclasses are responsible for opening and closing the table cells.
      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 - never
    • 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
      Description copied from class: CalendarTag
      Ends 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:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class CalendarTag
      Returns:
      EVAL_PAGE always
      Throws:
      jakarta.servlet.jsp.JspException - if an I/O error occurs