Class RowTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.view.RowTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
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 org.deltava.taglib.html.ElementTag
_classes, _data, _out
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()
Closes the table row by printing a </TR> tag to the JSP output stream.int
Opens the table row by rendering a <TR> tag to the JSP output stream.void
Sets the entry to display in the table row.Methods inherited from class org.deltava.taglib.html.ElementTag
getFormIndexCount, getName, getParentFormTag, release, setClassName, setID, setNumericAttr, setPageContext, setStyle
Methods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext
Methods inherited from class javax.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
Opens 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 theViewEntry
interface, 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:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classElementTag
- Returns:
- TagSupport.EVAL_BODY_INCLUDE
- Throws:
JspException
- if an I/O error occurs
-
doEndTag
Closes the table row by printing a </TR> tag to the JSP output stream.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException
- if an I/O error occurs
-