Class CalendarEntryTag

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

public class CalendarEntryTag extends jakarta.servlet.jsp.tagext.TagSupport
A JSP tag to save Calendar entries to the request context for rendering to a JSP.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Field Summary

    Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

    id, pageContext

    Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Checks if there are further entries for the current date, and saves the next entry into the request.
    int
    Renders the entries for the current date and saves the current entry into the request.
    (package private) boolean
    Returns whether there are further Calendar entries to display.
    void
    setName(String attrName)
    Sets the name of the request attribute to save the Calendar Entry into.

    Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport

    doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CalendarEntryTag

      public CalendarEntryTag()
  • Method Details

    • setName

      public void setName(String attrName)
      Sets the name of the request attribute to save the Calendar Entry into.
      Parameters:
      attrName - the request attribute name
    • hasMoreEntries

      boolean hasMoreEntries()
      Returns whether there are further Calendar entries to display.
      Returns:
      TRUE if there are more entries, otherwise FALSE
    • doStartTag

      public int doStartTag() throws jakarta.servlet.jsp.JspException
      Renders the entries for the current date and saves the current entry into the request.
      Specified by:
      doStartTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class jakarta.servlet.jsp.tagext.TagSupport
      Returns:
      TagSupport#SKIP_BODY if no entries for today, otherwise TagSupport#EVAL_BODY_INCLUDE
      Throws:
      jakarta.servlet.jsp.JspException - if not contained within a CalendarTag
    • doAfterBody

      public int doAfterBody() throws jakarta.servlet.jsp.JspException
      Checks if there are further entries for the current date, and saves the next entry into the request.
      Specified by:
      doAfterBody in interface jakarta.servlet.jsp.tagext.IterationTag
      Overrides:
      doAfterBody in class jakarta.servlet.jsp.tagext.TagSupport
      Returns:
      TagSupport#SKIP_BODY if no more entries for today, otherwise TagSupport#EVAL_BODY_INCLUDE
      Throws:
      jakarta.servlet.jsp.JspException - never