Package org.ametys.cms.tag
Class ColorableCMSTag
java.lang.Object
org.ametys.cms.tag.CMSTag
org.ametys.cms.tag.ColorableCMSTag
- All Implemented Interfaces:
ColorableTag
,Tag
- Direct Known Subclasses:
CategoryCMSTag
This class represent a CMS Tag
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.cms.tag.CMSTag
CMSTag.TagVisibility
-
Field Summary
Fields inherited from interface org.ametys.cms.tag.Tag
NAME_PATTERN
-
Constructor Summary
ConstructorDescriptionColorableCMSTag
(CMSTag cmsTag, String color, AbstractColorsComponent colorsComponent) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetColor
(boolean withDefaultValue) Get the color index in the component paleteGet the color componentMethods inherited from class org.ametys.cms.tag.CMSTag
addTag, getDescription, getId, getName, getParent, getParentName, getTag, getTags, getTarget, getTitle, getVisibility, hasTag, setTags, setTarget, setVisibility
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.cms.tag.ColorableTag
getColorCSSClassPrefix
-
Constructor Details
-
ColorableCMSTag
Constructor- Parameters:
cmsTag
- the CMS tagcolor
- the colorcolorsComponent
- the colors component
-
-
Method Details
-
getColor
Description copied from interface:ColorableTag
Get the color index in the component palete- Specified by:
getColor
in interfaceColorableTag
- Parameters:
withDefaultValue
-true
if we want to get first the color of the parent then the default value- Returns:
- the color. Can be null if withDefaultValue is
false
-
getColorComponent
Description copied from interface:ColorableTag
Get the color component- Specified by:
getColorComponent
in interfaceColorableTag
- Returns:
- the color component
-