Class ScrollBarTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.view.ScrollBarTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
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 javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Completes the tag by releasing the state variables.int
Loads the view context from the page context, and determines whether to include the tag body.(package private) ViewContext
<?> Returns the view context.(package private) boolean
hasView()
Returns whether a view context is present in the requeust.(package private) boolean
isForced()
Returns whether display of the scroll bar has been forced.(package private) boolean
Returns whether we are at the end of the view.(package private) boolean
Returns whether we are at the start of the view.void
release()
Releases the tag's state variables.void
setForce
(boolean doForce) Sets whether the tag body should be always included.Methods inherited from class javax.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:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
- 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 interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE always
-
release
public void release()Releases the tag's state variables.- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-