Class ScrollBarTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.view.ScrollBarTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class ScrollBarTag extends TagSupport
A JSP tag to selectively display view table scroll tags.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • ScrollBarTag

      public ScrollBarTag()
  • Method Details

    • setForce

      public void setForce(boolean doForce)
      Sets whether the tag body should be always included.
      Parameters:
      doForce - TRUE if the body should be always rendered, otherwise FALSE
    • isViewStart

      boolean isViewStart()
      Returns whether we are at the start of the view.
      Returns:
      TRUE if at the start of a view, otherwise FALSE
      See Also:
    • isViewEnd

      boolean isViewEnd()
      Returns whether we are at the end of the view.
      Returns:
      TRUE if at the end of a view, otherwise FALSE
      See Also:
    • hasView

      boolean hasView()
      Returns whether a view context is present in the requeust.
      Returns:
      TRUE if a view context is present, otherwise FALSE
    • isForced

      boolean isForced()
      Returns whether display of the scroll bar has been forced.
      Returns:
      TRUE if the body should always be rendered
    • getContext

      ViewContext<?> getContext()
      Returns the view context.
      Returns:
      the view context
    • doStartTag

      public int doStartTag()
      Loads the view context from the page context, and determines whether to include the tag body. The tag body will only be included if the view context is present and we are not simaltaneously at the start and end of the view.
      Specified by:
      doStartTag in interface Tag
      Overrides:
      doStartTag in class TagSupport
      Returns:
      TagSupport.EVAL_BODY_INCLUDE or TagSupport.SKIP_BODY
    • doEndTag

      public int doEndTag()
      Completes the tag by releasing the state variables.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      TagSupport.EVAL_PAGE always
    • release

      public void release()
      Releases the tag's state variables.
      Specified by:
      release in interface Tag
      Overrides:
      release in class TagSupport