Package org.ametys.web.color
Class AbstractColorsComponent
java.lang.Object
org.ametys.web.color.AbstractColorsComponent
- All Implemented Interfaces:
Component
,Configurable
- Direct Known Subclasses:
CategoryColorsComponent
,ProjectTagsColorsComponent
,SiteColorsComponent
,TasksListColorsComponent
Component listing the available colors
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) Get the colors by index A 'color' is an association key-hexacolor.Get the key to use as default in the colors
-
Constructor Details
-
AbstractColorsComponent
public AbstractColorsComponent()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getDefaultKey
Get the key to use as default in the colors- Returns:
- A non null key.
-
getColors
Get the colors by index A 'color' is an association key-hexacolor. Where key can be 'main', 'text'...- Returns:
- The map
-