Class AbstractMenuItemTag

java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
de.hybris.platform.hac.taglib.AbstractMenuItemTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag
Direct Known Subclasses:
SubMenuItemTag, TopMenuItemTag

public abstract class AbstractMenuItemTag extends javax.servlet.jsp.tagext.SimpleTagSupport
Abstract class for menu items in hAC.
  • Field Details

  • Constructor Details

    • AbstractMenuItemTag

      public AbstractMenuItemTag()
  • Method Details

    • setId

      public void setId(String id)
    • setLabel

      public void setLabel(String label)
    • doTag

      public void doTag() throws javax.servlet.jsp.JspException, IOException
      Specified by:
      doTag in interface javax.servlet.jsp.tagext.SimpleTag
      Overrides:
      doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
      Throws:
      javax.servlet.jsp.JspException
      IOException
    • getHref

      protected abstract String getHref() throws javax.servlet.jsp.JspException
      Gets the value of href attribute in a tag for item element.
      Returns:
      the href value
      Throws:
      javax.servlet.jsp.JspException - the jsp exception
    • getATagAttrs

      protected abstract String getATagAttrs() throws javax.servlet.jsp.JspException
      Gets the additional attributes of a tag for item element like id and class.
      Returns:
      the a tag attrs
      Throws:
      javax.servlet.jsp.JspException - the jsp exception
    • getHtml

      protected String getHtml() throws javax.servlet.jsp.JspException
      Throws:
      javax.servlet.jsp.JspException
    • getIdFromLabel

      protected String getIdFromLabel()
      Generates html id from provided label.
      Returns:
      the id from label
    • getDataMenuitemFromLabel

      protected String getDataMenuitemFromLabel()
      Generates value for data-menuitem attribute from label.
      Returns:
      the data menuitem from label