Package org.ametys.web.site
Class SiteColorsComponent
- java.lang.Object
-
- org.ametys.web.site.SiteColorsComponent
-
- All Implemented Interfaces:
Component
,Configurable
- Direct Known Subclasses:
CategoryColorsComponent
public class SiteColorsComponent extends Object implements Component, Configurable
Component listing the available colors for a site
-
-
Constructor Summary
Constructors Constructor Description SiteColorsComponent()
-
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
-
SiteColorsComponent
public SiteColorsComponent()
-
-
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.
-
-