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
public abstract class AbstractColorsComponent extends Object implements Component, Configurable
Component listing the available colors
-
-
Constructor Summary
Constructors Constructor Description AbstractColorsComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
Map<String,Map<String,String>>
getColors()
Get the colors by index A 'color' is an association key-hexacolor.String
getDefaultKey()
Get the key to use as default in the colors
-
-
-
Constructor Detail
-
AbstractColorsComponent
public AbstractColorsComponent()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getDefaultKey
public String getDefaultKey()
Get the key to use as default in the colors- Returns:
- A non null key.
-
-