Class ScrollTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.html.LinkTag
org.deltava.taglib.view.ScrollTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
- Direct Known Subclasses:
PageDownTag, PageUpTag
A class to support tag to handle Page Up/Down links at the bottom of a view page.
- Since:
- 1.0
- Version:
- 10.0
- Author:
- Luke
-
Field Summary
FieldsFields inherited from class ElementTag
_classes, _data, _outModifier and TypeFieldDescriptionprotected final Collection<String> protected final XMLRendererprotected jakarta.servlet.jsp.JspWriterFields 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 TypeMethodDescriptionprotected static StringbuildParameters(Map<String, String> params) A helper method to bundle request parameters into a URL string.protected voidOutputs the tag label to the JSP output stream.final voidUpdates the target frame for this tag.voidUpdates the URL label text.final voidUpdates the URL for this tag.protected voidValidates the tag to ensure it is contained within an enclosing <view:table> tag and an enclosing <view:scrollbar> tag.Methods inherited from class LinkTag
doEndTag, doStartTag, release, setAnchor, setExternal, setLabel, setOnClick, validateLinkModifier and TypeMethodDescriptionintdoEndTag()intvoidrelease()voidSets the anchor for this link.voidsetExternal(boolean isExternal) Marks this link as an external link.voidSets the label for this link.voidsetOnClick(String js) Sets the JavaScript onClick event for this link.protected voidValidates the tag to ensure a URL/onClick event has been set.Methods inherited from class ElementTag
getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setPageContext, setStyleModifier and TypeMethodDescriptionprotected intGets and increments the current tab index count for the parent form tag.protected StringgetName()Returns the type of HTML element this tag generated.protected FormTagReturns the parent form tag.voidsetClassName(String cName) Sets the CSS class name of this HTML element.voidSets the ID of this HTML element.protected voidsetNumericAttr(String attrName, int value, int minValue) Sets a numeric attribute.voidsetPageContext(jakarta.servlet.jsp.PageContext ctxt) voidAssociates a CSS style with this HTML element.Methods inherited from class BrowserInfoTag
getBrowserContext, passedCAPTCHAModifier and TypeMethodDescriptionprotected HTTPContextDataFetches the browser data.protected booleanReturns whether the user has passed CAPTCHA validation.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Field Details
-
_viewTag
-
_scrollBarTag
-
_tagLabel
-
-
Constructor Details
-
ScrollTag
Creates a new JSP tag with the specified label.- Parameters:
label- the label text- See Also:
-
-
Method Details
-
setUrl
Updates the URL for this tag. NOT IMPLEMENTED- Overrides:
setUrlin classLinkTag- Parameters:
cmd- the target URL- Throws:
UnsupportedOperationException
-
setTarget
Updates the target frame for this tag. NOT IMPLEMENTED- Overrides:
setTargetin classLinkTag- Parameters:
targetFrame- the target frame name- Throws:
UnsupportedOperationException
-
buildParameters
-
setText
-
validateTag
protected void validateTag() throws jakarta.servlet.jsp.JspExceptionValidates the tag to ensure it is contained within an enclosing <view:table> tag and an enclosing <view:scrollbar> tag.- Throws:
jakarta.servlet.jsp.JspException- if the tag is not enclosed
-
renderLabel
protected void renderLabel() throws jakarta.servlet.jsp.JspExceptionOutputs the tag label to the JSP output stream.- Throws:
jakarta.servlet.jsp.JspException- if an error occurs
-