Enum Class AutomaticWidgetType
- All Implemented Interfaces:
WidgetContentType
,Serializable
,Comparable<AutomaticWidgetType>
,Constable
All types of sidebar widgets which are generated automatically if certain conditions are met, usually if certain CMS content exists Currently
(22-01) only CMS-Geomaps provide automatic widgets
- Author:
- florian
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe filename of the xhtml component for this widgetgetLabel()
Get a message key providing a label for this widgetgetName()
The enum value of this type, taken from the classes implementing this interfaceboolean
isAllowedForPage
(CMSPage page) boolean
isAllowedForPage
(CMSPageTemplate template) static AutomaticWidgetType
Returns the enum constant of this class with the specified name.static AutomaticWidgetType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WIDGET_CMSGEOMAP
Widget displaying a geomap created in CMS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIconClass
- Specified by:
getIconClass
in interfaceWidgetContentType
-
getLabel
Description copied from interface:WidgetContentType
Get a message key providing a label for this widget- Specified by:
getLabel
in interfaceWidgetContentType
- Returns:
String
-
getFilename
Description copied from interface:WidgetContentType
The filename of the xhtml component for this widget- Specified by:
getFilename
in interfaceWidgetContentType
- Returns:
String
-
getName
Description copied from interface:WidgetContentType
The enum value of this type, taken from the classes implementing this interface- Specified by:
getName
in interfaceWidgetContentType
- Returns:
String
-
isAllowedForPage
- Specified by:
isAllowedForPage
in interfaceWidgetContentType
-
isAllowedForPage
- Specified by:
isAllowedForPage
in interfaceWidgetContentType
-