Class A_CmsPreference
java.lang.Object
org.opencms.configuration.preferences.A_CmsPreference
- All Implemented Interfaces:
I_CmsPreference
- Direct Known Subclasses:
CmsBuiltinPreference,CmsEditorPreference,CmsStartGallleryPreference,CmsUserDefinedPreference
Abstract superclass for preferences.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.dom4j.ElementCreates the configuration for this preference.protected abstract CmsXmlContentPropertyGets the user-independent property configuration.Gets the metadata describing how the setting should be edited.booleanisDisabled(CmsObject cms) Returns true if the preference is disabled.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.configuration.preferences.I_CmsPreference
getDefaultValue, getName, getTab, getValue, setValue
-
Constructor Details
-
A_CmsPreference
public A_CmsPreference()
-
-
Method Details
-
createConfigurationItem
Description copied from interface:I_CmsPreferenceCreates the configuration for this preference.- Specified by:
createConfigurationItemin interfaceI_CmsPreference- Returns:
- the configuration for this preference
- See Also:
-
getPropertyDefinition
Description copied from interface:I_CmsPreferenceGets the metadata describing how the setting should be edited.- Specified by:
getPropertyDefinitionin interfaceI_CmsPreference- Parameters:
cms- the current CMS context- Returns:
- the metadata for the client which describes how the setting should be edited
- See Also:
-
isDisabled
Description copied from interface:I_CmsPreferenceReturns true if the preference is disabled.- Specified by:
isDisabledin interfaceI_CmsPreference- Parameters:
cms- the current CMS context- Returns:
- true if the preference is disabled
- See Also:
-
getPropertyDefinition
Gets the user-independent property configuration.This is what is used to write the preference back to the workplace configuration.
- Returns:
- the property configuration
-