Class SubMenuTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.layout.MenuElementTag
org.deltava.taglib.layout.SubMenuTag
- All Implemented Interfaces:
Serializable,IterationTag,JspTag,Tag
A JSP tag to render a top level menu item in a JSP tag.
- Since:
- 2.6
- Version:
- 8.7
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.taglib.layout.MenuElementTag
_renderTableFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()Writes the menu item's closing tag to the JSP output stream.intWrites the menu item's opening tag to the JSP output stream.voidrelease()Releases the tag's state variables.voidSets the menu title.voidsetWidth(int width) Sets the width of the menu title.(package private) voidWrites a sub-menu <URL> element.Methods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext, passedCAPTCHAMethods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
SubMenuTag
public SubMenuTag()
-
-
Method Details
-
setTitle
-
setWidth
public void setWidth(int width) Sets the width of the menu title.- Parameters:
width- the width in pixels
-
writeSubMenu
Writes a sub-menu <URL> element.- Throws:
IOException- if an I/O error occurs
-
release
public void release()Releases the tag's state variables.- Specified by:
releasein interfaceTag- Overrides:
releasein classTagSupport
-
doStartTag
Writes the menu item's opening tag to the JSP output stream.- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classMenuElementTag- Returns:
- TagSuppport.EVAL_BODY_INCLUDE always
- Throws:
JspException- if an error occurs
-
doEndTag
Writes the menu item's closing tag to the JSP output stream.- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classTagSupport- Returns:
- TagSuppport.EVAL_PAGE always
- Throws:
JspException- if an error occurs
-