Class AbstractUILinkItem

java.lang.Object
com.jalios.jcms.uicomponent.linkitems.AbstractUILinkItem
All Implemented Interfaces:
UILinkItem
Direct Known Subclasses:
PortalElementEditSkin, PortletIndicatorEditMetric, PortletQueryForeachActionEditPublications, PortletQueryForeachActionEditQuery, PortletQueryForeachActionPublish

public abstract class AbstractUILinkItem extends Object implements UILinkItem
Default abstract implementation for UILinkItem
Since:
jcms-10.0.7
  • Field Details

  • Constructor Details

  • Method Details

    • 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 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 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 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 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 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 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 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
    • getButton

      public Button getButton()
      Description copied from interface: UILinkItem
      Returns a Button for this action
      Specified by:
      getButton in interface UILinkItem
      Returns:
      a Button for this action