Class CmsBuiltinPreference
java.lang.Object
org.opencms.configuration.preferences.A_CmsPreference
org.opencms.configuration.preferences.CmsBuiltinPreference
- All Implemented Interfaces:
I_CmsPreference
- Direct Known Subclasses:
CmsElementViewPreference
,CmsGalleryShowInvalidDefaultPreference
,CmsHiddenBuiltinPreference
,CmsLanguagePreference
,CmsProjectPreference
,CmsSitePreference
,CmsStartFolderPreference
,CmsStartViewPreference
,CmsTimeWarpPreference
,CmsWorkplaceModePreference
Preference subclass for built-in preferences accessed with a getter/setter pair via reflection.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A bean representing a set of select options. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the default value for the preference.getName()
Gets the preference name.Gets the user-independent property configuration.getTab()
Gets the preference tab.getValue
(CmsDefaultUserSettings userSettings) Reads the value of the preference from a CmsDefaultUserSettings instance .void
setValue
(CmsDefaultUserSettings settings, String value) Sets the value of the preference in a CmsDefaultUserSettings instance.Methods inherited from class org.opencms.configuration.preferences.A_CmsPreference
createConfigurationItem, getPropertyDefinition, isDisabled
-
Field Details
-
m_basic
True if this is a basic preference.
-
-
Constructor Details
-
CmsBuiltinPreference
Creates a new instance.- Parameters:
propName
- the name of the bean property used to access this preference
-
-
Method Details
-
getDefaultValue
Description copied from interface:I_CmsPreference
Gets the default value for the preference.- Returns:
- the default value
- See Also:
-
getName
Description copied from interface:I_CmsPreference
Gets the preference name.- Returns:
- the preference name
- See Also:
-
getPropertyDefinition
Description copied from class:A_CmsPreference
Gets the user-independent property configuration.This is what is used to write the preference back to the workplace configuration.
- Specified by:
getPropertyDefinition
in classA_CmsPreference
- Returns:
- the property configuration
- See Also:
-
getTab
Description copied from interface:I_CmsPreference
Gets the preference tab.- Returns:
- the preference tab
- See Also:
-
getValue
Description copied from interface:I_CmsPreference
Reads the value of the preference from a CmsDefaultUserSettings instance .- Parameters:
userSettings
- the user settings from which to read the preference value- Returns:
- the preference value
- See Also:
-
setValue
Description copied from interface:I_CmsPreference
Sets the value of the preference in a CmsDefaultUserSettings instance.- Parameters:
settings
- the settings used to store the preference valuevalue
- the new value- See Also:
-