Package org.opencms.jsp.util
Class CmsSettingDefinitionWrapper
java.lang.Object
org.opencms.jsp.util.CmsSettingDefinitionWrapper
- All Implemented Interfaces:
I_CmsInfoWrapper
Wrapper used to access element setting definition information in JSP code.
-
Constructor Summary
ConstructorsConstructorDescriptionCmsSettingDefinitionWrapper
(CmsObject cms, CmsXmlContentProperty settingDef, Function<Locale, CmsMacroResolver> resolverProvider) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the default value.Gets the description.getDescription
(Locale locale) Gets the localized description for a particular locale.Gets the description key.Gets the raw description configured for the setting.Gets the display name.Gets the display name key.Gets the raw configured display name.Tries to interpret the widget configuration as a select option configuration and returns the list of select options if this succeeds, and null otherwise.Gets the property name.Gets the visibility.Gets the widget.Gets the widget config.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opencms.jsp.util.I_CmsInfoWrapper
getDescription
-
Constructor Details
-
CmsSettingDefinitionWrapper
public CmsSettingDefinitionWrapper(CmsObject cms, CmsXmlContentProperty settingDef, Function<Locale, CmsMacroResolver> resolverProvider) Creates a new instance.- Parameters:
cms
- the current CMS contextsettingDef
- the raw setting definitionresolverProvider
- provides macro resolvers for a particular locale
-
-
Method Details
-
getDefaultValue
Gets the default value.- Returns:
- the default value
-
getDescription
Gets the description.- Specified by:
getDescription
in interfaceI_CmsInfoWrapper
- Returns:
- the description
-
getDescription
Gets the localized description for a particular locale.- Specified by:
getDescription
in interfaceI_CmsInfoWrapper
- Parameters:
locale
- the locale- Returns:
- the localized description
-
getDescriptionKey
Gets the description key.- Specified by:
getDescriptionKey
in interfaceI_CmsInfoWrapper
- Returns:
- the description key
-
getDescriptionRaw
Gets the raw description configured for the setting.- Specified by:
getDescriptionRaw
in interfaceI_CmsInfoWrapper
- Returns:
- the raw description
-
getDisplayName
Gets the display name.- Returns:
- the display name
-
getDisplayNameKey
Gets the display name key.- Returns:
- the display name key
-
getDisplayNameRaw
Gets the raw configured display name.- Returns:
- the raw display name
-
getParsedSelectOptions
Tries to interpret the widget configuration as a select option configuration and returns the list of select options if this succeeds, and null otherwise.- Returns:
- the list of parsed select options, or null if the widget configuration couldn't be interpreted that way
-
getPropertyName
Gets the property name.- Returns:
- the property name
-
getVisibility
Gets the visibility.- Returns:
- the visibility
-
getWidget
Gets the widget.- Returns:
- the widget
-
getWidgetConfig
Gets the widget config.- Returns:
- the widget config
-
toString
-