Class AbstractUILinkItem
java.lang.Object
com.jalios.jcms.uicomponent.linkitems.AbstractUILinkItem
- All Implemented Interfaces:
UILinkItem
- Direct Known Subclasses:
PortalElementEditSkin,PortletIndicatorEditMetric,PortletQueryForeachActionEditPublications,PortletQueryForeachActionEditQuery,PortletQueryForeachActionPublish
Default abstract implementation for
UILinkItem- Since:
- jcms-10.0.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept()Returns true if the menu should propose this itemReturns aButtonfor this actiongetHtml()Returns the action(s) html if you need to provide multiple links (You will need to produce LI > A)getIcon()Returns the icon of the menu itemintgetIndex()Returns CSS classes to add to the link.getLabel()Return the label used in the menu.Returns HTML attributes to add to the link.Returns CSS classes to add to the link.getUrl()Returns the URL for the action linkReturns CSS classes to add to the link wrapper (LI or other tag).booleanReturns true if current link item has a divider afterbooleanReturns true if current link item has a divider beforebooleanisLogged()
-
Field Details
-
ICON_PROP_SUFFIX
- See Also:
-
INDEX_PROP_SUFFIX
- See Also:
-
HAS_DIVIDER_BEFORE_PROP_SUFFIX
- See Also:
-
HAS_DIVIDER_AFTER_PROP_SUFFIX
- See Also:
-
channel
-
ctx
-
-
Constructor Details
-
AbstractUILinkItem
-
-
Method Details
-
accept
public boolean accept()Description copied from interface:UILinkItemReturns true if the menu should propose this item- Specified by:
acceptin interfaceUILinkItem- Returns:
- true if the menu should propose this item
-
getIcon
Description copied from interface:UILinkItemReturns the icon of the menu item- Specified by:
getIconin interfaceUILinkItem- Returns:
- the icon of the menu item
-
getUrl
Description copied from interface:UILinkItemReturns the URL for the action link- Specified by:
getUrlin interfaceUILinkItem- Returns:
- the the URL for the action link
-
getHtml
Description copied from interface:UILinkItemReturns the action(s) html if you need to provide multiple links (You will need to produce LI > A)- Specified by:
getHtmlin interfaceUILinkItem- Returns:
- the actions html
-
getLinkCss
Description copied from interface:UILinkItemReturns CSS classes to add to the link.- Specified by:
getLinkCssin interfaceUILinkItem- Returns:
- CSS classes to add to the link.
-
getWrapperCss
Description copied from interface:UILinkItemReturns CSS classes to add to the link wrapper (LI or other tag).- Specified by:
getWrapperCssin interfaceUILinkItem- Returns:
- CSS classes to add to the link wrapper (LI or other tag).
-
getLinkAttributes
Description copied from interface:UILinkItemReturns HTML attributes to add to the link.- Specified by:
getLinkAttributesin interfaceUILinkItem- Returns:
- HTML attributes to add to the link.
-
isLogged
public boolean isLogged()- Returns:
- true if there's a logged
Memberfrom ctx.getJcmsContext - Since:
- jcms-10.0.7
-
getLoggedMember
- Returns:
- the logged
Memberfrom ctx.getJcmsContext - Since:
- jcms-10.0.7
-
getLabel
Description copied from interface:UILinkItemReturn the label used in the menu.- Specified by:
getLabelin interfaceUILinkItem- Returns:
- the label used in the menu.
-
getIndex
public int getIndex()Description copied from interface:UILinkItemReturns CSS classes to add to the link.- Specified by:
getIndexin interfaceUILinkItem- Returns:
- CSS classes to add to the link.
-
hasDividerBefore
public boolean hasDividerBefore()Description copied from interface:UILinkItemReturns true if current link item has a divider before- Specified by:
hasDividerBeforein interfaceUILinkItem- Returns:
- true if current link item has a divider before
-
hasDividerAfter
public boolean hasDividerAfter()Description copied from interface:UILinkItemReturns true if current link item has a divider after- Specified by:
hasDividerAfterin interfaceUILinkItem- Returns:
- true if current link item has a divider after
-
getButton
Description copied from interface:UILinkItemReturns aButtonfor this action- Specified by:
getButtonin interfaceUILinkItem- Returns:
- a
Buttonfor this action
-