Class TableTag
java.lang.Object
javax.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:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to support database view tables.
- Since:
- 1.0
- Version:
- 5.1
- 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()
Renders the tag to the JSP output stream.int
Renders the tag to the JSP output stream.protected String
getCmd()
Returns the view command ID (for unit tests).void
release()
Releases the tag's state variables.void
Sets the Web Site Command to execute when scrolling through the view.void
setSize
(int size) Sets the number of view rows to display.protected int
size()
Returns the view scroll window size (for unit tests).Methods inherited from class org.deltava.taglib.html.ElementTag
getFormIndexCount, getName, getParentFormTag, 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
-
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
Renders the tag to the JSP output stream.- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTableTag
- Returns:
- EVAL_PAGE
- Throws:
JspException
- if an error occurs
-
doEndTag
Renders the tag to the JSP output stream.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTableTag
- Returns:
- EVAL_PAGE
- Throws:
JspException
- if an error occurs
-
release
public void release()Releases the tag's state variables.- Specified by:
release
in interfaceTag
- Overrides:
release
in 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:
-