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 java.lang.Object implements UILinkItem
Default abstract implementation forUILinkItem- Since:
- jcms-10.0.7
-
-
Field Summary
Fields Modifier and Type Field Description protected Channelchannelprotected UILinkItemsContextctxstatic java.lang.StringHAS_DIVIDER_AFTER_PROP_SUFFIXstatic java.lang.StringHAS_DIVIDER_BEFORE_PROP_SUFFIXstatic java.lang.StringICON_PROP_SUFFIXstatic java.lang.StringINDEX_PROP_SUFFIX
-
Constructor Summary
Constructors Constructor Description AbstractUILinkItem(UILinkItemsContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept()Returns true if the menu should propose this itemButtongetButton()Returns aButtonfor this actionjava.lang.StringgetHtml()Returns the action(s) html if you need to provide multiple links (You will need to produce LI > A)java.lang.StringgetIcon()Returns the icon of the menu itemintgetIndex()Returns CSS classes to add to the link.java.lang.StringgetLabel()Return the label used in the menu.java.lang.StringgetLinkAttributes()Returns HTML attributes to add to the link.java.lang.StringgetLinkCss()Returns CSS classes to add to the link.MembergetLoggedMember()java.lang.StringgetUrl()Returns the URL for the action linkjava.lang.StringgetWrapperCss()Returns CSS classes to add to the link wrapper (LI or other tag).booleanhasDividerAfter()Returns true if current link item has a divider afterbooleanhasDividerBefore()Returns true if current link item has a divider beforebooleanisLogged()
-
-
-
Field Detail
-
ICON_PROP_SUFFIX
public static final java.lang.String ICON_PROP_SUFFIX
- See Also:
- Constant Field Values
-
INDEX_PROP_SUFFIX
public static final java.lang.String INDEX_PROP_SUFFIX
- See Also:
- Constant Field Values
-
HAS_DIVIDER_BEFORE_PROP_SUFFIX
public static final java.lang.String HAS_DIVIDER_BEFORE_PROP_SUFFIX
- See Also:
- Constant Field Values
-
HAS_DIVIDER_AFTER_PROP_SUFFIX
public static final java.lang.String HAS_DIVIDER_AFTER_PROP_SUFFIX
- See Also:
- Constant Field Values
-
channel
protected Channel channel
-
ctx
protected UILinkItemsContext ctx
-
-
Constructor Detail
-
AbstractUILinkItem
public AbstractUILinkItem(UILinkItemsContext ctx)
-
-
Method Detail
-
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
public java.lang.String getIcon()
Description copied from interface:UILinkItemReturns the icon of the menu item- Specified by:
getIconin interfaceUILinkItem- Returns:
- the icon of the menu item
-
getUrl
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public Member getLoggedMember()
- Returns:
- the logged
Memberfrom ctx.getJcmsContext - Since:
- jcms-10.0.7
-
getLabel
public java.lang.String 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
public Button getButton()
Description copied from interface:UILinkItemReturns aButtonfor this action- Specified by:
getButtonin interfaceUILinkItem- Returns:
- a
Buttonfor this action
-
-