Class CalendarColorsComponent
- java.lang.Object
-
- org.ametys.plugins.explorer.calendars.CalendarColorsComponent
-
- All Implemented Interfaces:
Component
,Configurable
public class CalendarColorsComponent extends Object implements Component, Configurable
Component listing the available colors for aCalendar
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CalendarColorsComponent.CalendarColor
Class representing a calendar color
-
Constructor Summary
Constructors Constructor Description CalendarColorsComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
CalendarColorsComponent.CalendarColor
getColor(String id)
Get the color by idMap<String,CalendarColorsComponent.CalendarColor>
getColors()
Get the colors of calendars
-
-
-
Constructor Detail
-
CalendarColorsComponent
public CalendarColorsComponent()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getColors
public Map<String,CalendarColorsComponent.CalendarColor> getColors()
Get the colors of calendars- Returns:
- colors
-
getColor
public CalendarColorsComponent.CalendarColor getColor(String id)
Get the color by id- Parameters:
id
- the id- Returns:
- the color
-
-