Package com.jalios.jcms.uicomponent
Class BadgeItem
java.lang.Object
com.jalios.jcms.uicomponent.AbstractComponentItem<BadgeItem>
com.jalios.jcms.uicomponent.AbstractColorComponentItem<BadgeItem>
com.jalios.jcms.uicomponent.BadgeItem
- All Implemented Interfaces:
IComponentItem
A Pojo for badge (To use with BadgeTag)
- Since:
- jcms-11.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Dataprotected Stringprotected Stringprotected DataAttributeprotected Stringprotected Stringprotected booleanprotected Buttonprotected Stringprotected Stringprotected StringFields inherited from class com.jalios.jcms.uicomponent.AbstractColorComponentItem
levelFields inherited from class com.jalios.jcms.uicomponent.AbstractComponentItem
css, dataAttributes, htmlAttributes, label -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendHtml(String appendHtml) getCategoryBrowserList(CategoryBrowserContext categoryBrowserContext) getCSS()getData()getHtmlTag(Locale userLocale) getIcon()Returns the data attributes rendered only on the badge label.Returns the HTML attributes rendered only on the badge label.getLabelTag(Locale userLocale) getTooltipAlt(String userLang) Returns the tooltip icon alternative text, defaulting to more information about the badge label.booleanlabelDataAttributes(DataAttribute labelDataAttributes) Sets the data attributes rendered only on the badge label.labelHtmlAttributes(String labelHtmlAttributes) Sets the HTML attributes rendered only on the badge label.removeLink(boolean removeLink) rightButton(Button rightButton) tooltipAlt(String tooltipAlt) Sets the tooltip icon alternative text (literal text or language property).Methods inherited from class com.jalios.jcms.uicomponent.AbstractColorComponentItem
getLevel, levelMethods inherited from class com.jalios.jcms.uicomponent.AbstractComponentItem
css, dataAttributes, getHtmlAttributes, getLabel, htmlAttributes, label
-
Field Details
-
url
-
htmlTag
-
labelTag
-
labelDataAttributes
-
labelHtmlAttributes
-
icon
-
data
-
rightButton
-
removeLink
protected boolean removeLink -
tooltip
-
tooltipAlt
-
appendHtml
-
-
Constructor Details
-
BadgeItem
public BadgeItem() -
BadgeItem
-
-
Method Details
-
getLabel
-
getCSS
- Specified by:
getCSSin interfaceIComponentItem- Overrides:
getCSSin classAbstractComponentItem<BadgeItem>
-
getCategoryBrowserList
-
getDataAttributes
- Specified by:
getDataAttributesin interfaceIComponentItem- Overrides:
getDataAttributesin classAbstractComponentItem<BadgeItem>
-
getLabelDataAttributes
Returns the data attributes rendered only on the badge label.- Returns:
- the label data attributes
- Since:
- jcms-11.0.1
-
labelDataAttributes
Sets the data attributes rendered only on the badge label.- Parameters:
labelDataAttributes- the label data attributes- Returns:
- this badge item
- Since:
- jcms-11.0.1
-
getLabelHtmlAttributes
Returns the HTML attributes rendered only on the badge label.- Returns:
- the label HTML attributes
- Since:
- jcms-11.0.1
-
labelHtmlAttributes
Sets the HTML attributes rendered only on the badge label.- Parameters:
labelHtmlAttributes- the label HTML attributes- Returns:
- this badge item
- Since:
- jcms-11.0.1
-
getUrl
-
url
-
getHtmlTag
-
getLabelTag
-
htmlTag
-
getIcon
-
icon
-
getData
-
data
-
rightButton
-
isRemoveLink
public boolean isRemoveLink() -
removeLink
-
removeLink
-
getRightButton
-
tooltip
-
getTooltip
-
tooltipAlt
Sets the tooltip icon alternative text (literal text or language property).- Parameters:
tooltipAlt- the alternative text- Returns:
- this badge item
-
getTooltipAlt
Returns the tooltip icon alternative text, defaulting to more information about the badge label.- Parameters:
userLang- the language used to resolve the alternative text and badge label- Returns:
- the localized alternative text
-
appendHtml
-
getAppendHtml
-
title
-
getTitle
-