Package de.hybris.platform.hac.taglib
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoTag()protected abstract StringGets the additional attributes of a tag for item element like id and class.protected StringGenerates value for data-menuitem attribute from label.protected abstract StringgetHref()Gets the value of href attribute in a tag for item element.protected StringgetHtml()protected StringGenerates html id from provided label.voidvoidMethods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Field Details
-
id
-
label
-
-
Constructor Details
-
AbstractMenuItemTag
public AbstractMenuItemTag()
-
-
Method Details
-
setId
-
setLabel
-
doTag
- Specified by:
doTagin interfacejavax.servlet.jsp.tagext.SimpleTag- Overrides:
doTagin classjavax.servlet.jsp.tagext.SimpleTagSupport- Throws:
javax.servlet.jsp.JspExceptionIOException
-
getHref
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
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
- Throws:
javax.servlet.jsp.JspException
-
getIdFromLabel
Generates html id from provided label.- Returns:
- the id from label
-
getDataMenuitemFromLabel
Generates value for data-menuitem attribute from label.- Returns:
- the data menuitem from label
-