Interface WidgetContentType
- All Known Implementing Classes:
AutomaticWidgetType
,CustomWidgetType
,DefaultWidgetType
public interface WidgetContentType
-
Method Summary
Modifier and TypeMethodDescriptionThe filename of the xhtml component for this widgetstatic WidgetGenerationType
Get the corresponding generation type.getLabel()
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 WidgetContentType
Get the WidgetContentType for whichgetName()
method matches the given name
-
Method Details
-
getIconClass
String getIconClass() -
getLabel
String getLabel()Get a message key providing a label for this widget- Returns:
String
-
getFilename
String getFilename()The filename of the xhtml component for this widget- Returns:
String
-
getName
String getName()The enum value of this type, taken from the classes implementing this interface- Returns:
String
-
valueOf
Get the WidgetContentType for whichgetName()
method matches the given name- Parameters:
name
-- Returns:
- null if no matching type exists
-
getGenerationType
Get the corresponding generation type. Widgets of classDefaultWidgetType
have the generation typeWidgetGenerationType.DEFAULT
Widgets of classAutomaticWidgetType
have the generation typeWidgetGenerationType.AUTOMATIC
Widgets of classCustomWidgetType
have the generation typeWidgetGenerationType.CUSTOM
- Parameters:
type
-- Returns:
WidgetGenerationType
-
isAllowedForPage
-
isAllowedForPage
-