Class MenuItemTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag
Direct Known Subclasses:
UserNameTag

public class MenuItemTag extends MenuElementTag
A JSP tag to render a top level menu item in a JSP tag.
Since:
2.6
Version:
11.1
Author:
Luke
See Also:
  • 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

      protected void setLabel(String l)
      Sets the label for the menu item.
      Parameters:
      l - the label text
    • release

      public void release()
      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