Class AbstractUILinkItem

    • Method Detail

      • accept

        public boolean accept()
        Description copied from interface: UILinkItem
        Returns true if the menu should propose this item
        Specified by:
        accept in interface UILinkItem
        Returns:
        true if the menu should propose this item
      • getIcon

        public java.lang.String getIcon()
        Description copied from interface: UILinkItem
        Returns the icon of the menu item
        Specified by:
        getIcon in interface UILinkItem
        Returns:
        the icon of the menu item
      • getUrl

        public java.lang.String getUrl()
        Description copied from interface: UILinkItem
        Returns the URL for the action link
        Specified by:
        getUrl in interface UILinkItem
        Returns:
        the the URL for the action link
      • getHtml

        public java.lang.String getHtml()
        Description copied from interface: UILinkItem
        Returns the action(s) html if you need to provide multiple links (You will need to produce LI > A)
        Specified by:
        getHtml in interface UILinkItem
        Returns:
        the actions html
      • getLinkCss

        public java.lang.String getLinkCss()
        Description copied from interface: UILinkItem
        Returns CSS classes to add to the link.
        Specified by:
        getLinkCss in interface UILinkItem
        Returns:
        CSS classes to add to the link.
      • getWrapperCss

        public java.lang.String getWrapperCss()
        Description copied from interface: UILinkItem
        Returns CSS classes to add to the link wrapper (LI or other tag).
        Specified by:
        getWrapperCss in interface UILinkItem
        Returns:
        CSS classes to add to the link wrapper (LI or other tag).
      • getLinkAttributes

        public java.lang.String getLinkAttributes()
        Description copied from interface: UILinkItem
        Returns HTML attributes to add to the link.
        Specified by:
        getLinkAttributes in interface UILinkItem
        Returns:
        HTML attributes to add to the link.
      • isLogged

        public boolean isLogged()
        Returns:
        true if there's a logged Member from ctx.getJcmsContext
        Since:
        jcms-10.0.7
      • getLoggedMember

        public Member getLoggedMember()
        Returns:
        the logged Member from ctx.getJcmsContext
        Since:
        jcms-10.0.7
      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: UILinkItem
        Return the label used in the menu.
        Specified by:
        getLabel in interface UILinkItem
        Returns:
        the label used in the menu.
      • getIndex

        public int getIndex()
        Description copied from interface: UILinkItem
        Returns CSS classes to add to the link.
        Specified by:
        getIndex in interface UILinkItem
        Returns:
        CSS classes to add to the link.
      • hasDividerBefore

        public boolean hasDividerBefore()
        Description copied from interface: UILinkItem
        Returns true if current link item has a divider before
        Specified by:
        hasDividerBefore in interface UILinkItem
        Returns:
        true if current link item has a divider before
      • hasDividerAfter

        public boolean hasDividerAfter()
        Description copied from interface: UILinkItem
        Returns true if current link item has a divider after
        Specified by:
        hasDividerAfter in interface UILinkItem
        Returns:
        true if current link item has a divider after