Class ScrollBarTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.view.ScrollBarTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
public class ScrollBarTag
extends jakarta.servlet.jsp.tagext.TagSupport
A JSP tag to selectively display view table scroll tags.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()Completes the tag by releasing the state variables.intLoads the view context from the page context, and determines whether to include the tag body.(package private) ViewContext<?> Returns the view context.(package private) booleanhasView()Returns whether a view context is present in the requeust.(package private) booleanisForced()Returns whether display of the scroll bar has been forced.(package private) booleanReturns whether we are at the end of the view.(package private) booleanReturns whether we are at the start of the view.voidrelease()Releases the tag's state variables.voidsetForce(boolean doForce) Sets whether the tag body should be always included.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
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
-
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:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.TagSupport- Returns:
- TagSupport.EVAL_BODY_INCLUDE or TagSupport.SKIP_BODY
-
doEndTag
public int doEndTag()Completes the tag by releasing the state variables.- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.TagSupport- Returns:
- TagSupport.EVAL_PAGE always
-
release
public void release()Releases the tag's state variables.- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classjakarta.servlet.jsp.tagext.TagSupport
-