Enum Class CustomWidgetType
- All Implemented Interfaces:
WidgetContentType
,Serializable
,Comparable<CustomWidgetType>
,Constable
Types of sidebar widgets that contain individual configuration and must be created by a user
- Author:
- florian
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDisplays links to CMS pages.Display facets for a search field of type 'FACET_'.Display an html textDisplays an RSS feed. -
Method Summary
Modifier and TypeMethodDescriptionA message key for a description of ths widget typeThe 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 CustomWidgetType
Returns the enum constant of this class with the specified name.static CustomWidgetType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WIDGET_RSSFEED
Displays an RSS feed. Number and sorting of feed item may be configured, as well as a search query to filter the feed items -
WIDGET_FIELDFACETS
Display facets for a search field of type 'FACET_'. A filter query for facet results may be configured, as well as the order of facets -
WIDGET_CMSPAGES
Displays links to CMS pages. The linked pages can be selected when creating the widget -
WIDGET_HTML
Display an html text
-
-
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
-
getDescription
A message key for a description of ths widget type- Returns:
- the description
-
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
-