org.deltava.taglib.layout
Class MenuItemTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.layout.MenuElementTag
org.deltava.taglib.layout.MenuItemTag
- All Implemented Interfaces:
- Serializable, IterationTag, JspTag, Tag
public class MenuItemTag
- extends MenuElementTag
A JSP tag to render a top level menu item in a JSP tag.
- Since:
- 2.6
- Version:
- 3.0
- Author:
- Luke
- See Also:
- Serialized Form
|
Method Summary |
int |
doEndTag()
Writes the menu item's closing tag(s) to the JSP output stream. |
int |
doStartTag()
Writes the menu item's opening tag(s) to the JSP output stream. |
void |
release()
Releases the tag's state variables. |
void |
setWidth(int width)
Sets the width of the menu title. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MenuItemTag
public MenuItemTag()
setWidth
public void setWidth(int width)
- Sets the width of the menu title.
- Parameters:
width - the width in pixels
release
public void release()
- Releases the tag's state variables.
- Specified by:
release in interface Tag- Overrides:
release in class TagSupport
doStartTag
public int doStartTag()
throws JspException
- Writes the menu item's opening tag(s) to the JSP output stream.
- Specified by:
doStartTag in interface Tag- Overrides:
doStartTag in class MenuElementTag
- Returns:
- TagSuppport.EVAL_BODY_INCLUDE always
- Throws:
JspException - if an error occurs
doEndTag
public int doEndTag()
throws JspException
- Writes the menu item's closing tag(s) to the JSP output stream.
- Specified by:
doEndTag in interface Tag- Overrides:
doEndTag in class TagSupport
- Returns:
- TagSuppport.EVAL_PAGE always
- Throws:
JspException - if an error occurs
Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.