Class TableTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.html.TableTag
org.deltava.taglib.view.TableTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
A JSP tag to support database view tables.
- Since:
- 1.0
- Version:
- 5.1
- Author:
- Luke
- See Also:
-
Field Summary
Fields 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 TypeMethodDescriptionintdoEndTag()Renders the tag to the JSP output stream.intRenders the tag to the JSP output stream.protected StringgetCmd()Returns the view command ID (for unit tests).voidrelease()Releases the tag's state variables.voidSets the Web Site Command to execute when scrolling through the view.voidsetSize(int size) Sets the number of view rows to display.protected intsize()Returns the view scroll window size (for unit tests).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
-
Constructor Details
-
TableTag
public TableTag()
-
-
Method Details
-
setCmd
Sets the Web Site Command to execute when scrolling through the view.- Parameters:
name- the command ID- See Also:
-
setSize
public void setSize(int size) Sets the number of view rows to display.- Parameters:
size- the number of rows- See Also:
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionRenders the tag to the JSP output stream.- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classTableTag- Returns:
- EVAL_PAGE
- Throws:
jakarta.servlet.jsp.JspException- if an error occurs
-
doEndTag
-
release
public void release()Releases the tag's state variables.- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classElementTag
-
getCmd
Returns the view command ID (for unit tests).- Returns:
- the command ID
- See Also:
-
size
protected int size()Returns the view scroll window size (for unit tests).- Returns:
- the number of rows
- See Also:
-