Package org.deltava.taglib.layout
Class MenuItemTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.layout.MenuElementTag
org.deltava.taglib.layout.MenuItemTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
- Direct Known Subclasses:
UserNameTag
A JSP tag to render a top level menu item in a JSP tag.
- Since:
- 2.6
- Version:
- 11.1
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.taglib.layout.MenuElementTag
_renderTable
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
-
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Writes the menu item's closing tag(s) to the JSP output stream.int
Writes the menu item's opening tag(s) to the JSP output stream.void
release()
void
setColor
(int rgb) Sets the background color of the menu title.protected void
Sets the label for the menu item.void
setWidth
(int width) Sets the width of the menu title.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, setPageContext, setParent, setValue
-
Constructor Details
-
MenuItemTag
public MenuItemTag()
-
-
Method Details
-
setWidth
public void setWidth(int width) Sets the width of the menu title.- Parameters:
width
- the width in pixels
-
setColor
public void setColor(int rgb) Sets the background color of the menu title.- Parameters:
rgb
- a 24-bit RGB value
-
setLabel
-
release
public void release()- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-
doStartTag
Writes the menu item's opening tag(s) to the JSP output stream.- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classMenuElementTag
- Returns:
- TagSuppport.EVAL_BODY_INCLUDE always
- Throws:
JspException
- if an error occurs
-
doEndTag
Writes the menu item's closing tag(s) to the JSP output stream.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSuppport.EVAL_PAGE always
- Throws:
JspException
- if an error occurs
-