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
public class CmsBuiltinPreference extends A_CmsPreference
Preference subclass for built-in preferences accessed with a getter/setter pair via reflection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCmsBuiltinPreference.SelectOptionsA bean representing a set of select options.
-
Constructor Summary
Constructors Constructor Description CmsBuiltinPreference(java.lang.String propName)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDefaultValue()Gets the default value for the preference.java.lang.StringgetName()Gets the preference name.CmsXmlContentPropertygetPropertyDefinition()Gets the user-independent property configuration.java.lang.StringgetTab()Gets the preference tab.java.lang.StringgetValue(CmsDefaultUserSettings userSettings)Reads the value of the preference from a CmsDefaultUserSettings instance .voidsetValue(CmsDefaultUserSettings settings, java.lang.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
-
-
-
-
Constructor Detail
-
CmsBuiltinPreference
public CmsBuiltinPreference(java.lang.String propName)
Creates a new instance.- Parameters:
propName- the name of the bean property used to access this preference
-
-
Method Detail
-
getDefaultValue
public java.lang.String getDefaultValue()
Description copied from interface:I_CmsPreferenceGets the default value for the preference.- Returns:
- the default value
- See Also:
I_CmsPreference.getDefaultValue()
-
getName
public java.lang.String getName()
Description copied from interface:I_CmsPreferenceGets the preference name.- Returns:
- the preference name
- See Also:
I_CmsPreference.getName()
-
getPropertyDefinition
public CmsXmlContentProperty getPropertyDefinition()
Description copied from class:A_CmsPreferenceGets the user-independent property configuration.This is what is used to write the preference back to the workplace configuration.
- Specified by:
getPropertyDefinitionin classA_CmsPreference- Returns:
- the property configuration
- See Also:
A_CmsPreference.getPropertyDefinition()
-
getTab
public java.lang.String getTab()
Description copied from interface:I_CmsPreferenceGets the preference tab.- Returns:
- the preference tab
- See Also:
I_CmsPreference.getTab()
-
getValue
public java.lang.String getValue(CmsDefaultUserSettings userSettings)
Description copied from interface:I_CmsPreferenceReads 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:
I_CmsPreference.getValue(org.opencms.configuration.CmsDefaultUserSettings)
-
setValue
public void setValue(CmsDefaultUserSettings settings, java.lang.String value)
Description copied from interface:I_CmsPreferenceSets the value of the preference in a CmsDefaultUserSettings instance.- Parameters:
settings- the settings used to store the preference valuevalue- the new value- See Also:
I_CmsPreference.setValue(org.opencms.configuration.CmsDefaultUserSettings, java.lang.String)
-
-