org.deltava.taglib.layout
Class MenuItemTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.deltava.taglib.layout.MenuElementTag
          extended by 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

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
MenuItemTag()
           
 
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
 

Constructor Detail

MenuItemTag

public MenuItemTag()
Method Detail

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.