Class RowTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.view.RowTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
A JSP Tag to render view table rows with a specified CSS class.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class ElementTag
_classes, _data, _outFields 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()Closes the table row by printing a </TR> tag to the JSP output stream.intOpens the table row by rendering a <TR> tag to the JSP output stream.voidSets the entry to display in the table row.Methods inherited from class ElementTag
getFormIndexCount, getName, getParentFormTag, release, setClassName, setID, setNumericAttr, setPageContext, setStyleMethods inherited from class BrowserInfoTag
getBrowserContext, passedCAPTCHAMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
RowTag
public RowTag()Creates the tag.
-
-
Method Details
-
setEntry
Sets the entry to display in the table row.- Parameters:
obj- the Object to display.
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionOpens the table row by rendering a <TR> tag to the JSP output stream. If a CSS class name has been specified, then this will be set as the CLASS for the row. If the entry implements theViewEntryinterface, then the tableRowClassName property will be used as the class name. If the class name is NULL, no class property for the row will be set.- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classElementTag- Returns:
- TagSupport.EVAL_BODY_INCLUDE
- Throws:
jakarta.servlet.jsp.JspException- if an I/O error occurs
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspExceptionCloses the table row by printing a </TR> tag to the JSP output stream.- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.TagSupport- Returns:
- TagSupport.EVAL_PAGE
- Throws:
jakarta.servlet.jsp.JspException- if an I/O error occurs
-