Class SubMenuTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class SubMenuTag extends MenuElementTag
A JSP tag to render a top level menu item in a JSP tag.
Since:
2.6
Version:
8.7
Author:
Luke
See Also:
  • Constructor Details

    • SubMenuTag

      public SubMenuTag()
  • Method Details

    • setTitle

      public void setTitle(String title)
      Sets the menu title.
      Parameters:
      title - the title
    • setWidth

      public void setWidth(int width)
      Sets the width of the menu title.
      Parameters:
      width - the width in pixels
    • writeSubMenu

      void writeSubMenu() throws IOException
      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:
      release in interface Tag
      Overrides:
      release in class TagSupport
    • doStartTag

      public int doStartTag() throws JspException
      Writes the menu item's opening tag 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 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