Class ElementTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
- Direct Known Subclasses:
ButtonTag, FormElementTag, FormTag, ImageTag, LinkTag, MapDIVTag, MapDIVTag, RowTag, StaticMapTag, TableTag, UserProfileTag
A class for supporting JSP Tags that render HTML elements.
- Since:
- 1.0
- Version:
- 12.3
- Author:
- Luke
- See Also:
-
Field Summary
FieldsModifier 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
ConstructorsModifierConstructorDescriptionprotectedElementTag(String elementName) Creates a new HTML element tag with a given HTML element type. -
Method Summary
Modifier and TypeMethodDescriptionintprotected 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.voidrelease()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, passedCAPTCHAMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Field Details
-
_data
-
_classes
-
_out
protected jakarta.servlet.jsp.JspWriter _out
-
-
Constructor Details
-
ElementTag
Creates a new HTML element tag with a given HTML element type.- Parameters:
elementName- the HTML element type (eg. BODY, FORM, INPUT, etc.)
-
-
Method Details
-
getParentFormTag
Returns the parent form tag.- Returns:
- the parent FormTag, or null
-
getFormIndexCount
protected int getFormIndexCount()Gets and increments the current tab index count for the parent form tag.- Returns:
- the tabIndex
-
release
public void release()- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classjakarta.servlet.jsp.tagext.TagSupport
-
getName
Returns the type of HTML element this tag generated.- Returns:
- the HTML element type
-
setID
-
setClassName
Sets the CSS class name of this HTML element.- Parameters:
cName- the class name as refered to in a CSS file.
-
setStyle
Associates a CSS style with this HTML element.- Parameters:
style- the CSS
-
setNumericAttr
Sets a numeric attribute.- Parameters:
attrName- the attribute namevalue- the valueminValue- the minimum value for the attribute
-
setPageContext
public void setPageContext(jakarta.servlet.jsp.PageContext ctxt) - Specified by:
setPageContextin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
setPageContextin classjakarta.servlet.jsp.tagext.TagSupport
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspException- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.TagSupport- Throws:
jakarta.servlet.jsp.JspException
-