Class CmsLanguagePreference
- java.lang.Object
-
- org.opencms.configuration.preferences.A_CmsPreference
-
- org.opencms.configuration.preferences.CmsBuiltinPreference
-
- org.opencms.configuration.preferences.CmsLanguagePreference
-
- All Implemented Interfaces:
I_CmsPreference
public class CmsLanguagePreference extends CmsBuiltinPreference
Workplace locale preference.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opencms.configuration.preferences.CmsBuiltinPreference
CmsBuiltinPreference.SelectOptions
-
-
Field Summary
-
Fields inherited from class org.opencms.configuration.preferences.CmsBuiltinPreference
m_basic, m_hidden
-
-
Constructor Summary
Constructors Constructor Description CmsLanguagePreference(java.lang.String name)
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.util.Locale,java.lang.String>
getOptionMapForLanguage()
Gets the language selection options, with the locales as keys and the titles as values.CmsXmlContentProperty
getPropertyDefinition()
Gets the user-independent property configuration.CmsXmlContentProperty
getPropertyDefinition(CmsObject cms)
Gets the metadata describing how the setting should be edited.-
Methods inherited from class org.opencms.configuration.preferences.CmsBuiltinPreference
getDefaultValue, getName, getTab, getValue, setValue
-
Methods inherited from class org.opencms.configuration.preferences.A_CmsPreference
createConfigurationItem, isDisabled
-
-
-
-
Constructor Detail
-
CmsLanguagePreference
public CmsLanguagePreference(java.lang.String name)
Creates a new instance.- Parameters:
name
- the name
-
-
Method Detail
-
getOptionMapForLanguage
public static java.util.Map<java.util.Locale,java.lang.String> getOptionMapForLanguage()
Gets the language selection options, with the locales as keys and the titles as values.- Returns:
- the map of language selection options
-
getPropertyDefinition
public CmsXmlContentProperty 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.
- Overrides:
getPropertyDefinition
in classCmsBuiltinPreference
- Returns:
- the property configuration
- See Also:
A_CmsPreference.getPropertyDefinition(org.opencms.file.CmsObject)
-
getPropertyDefinition
public CmsXmlContentProperty getPropertyDefinition(CmsObject cms)
Description copied from interface:I_CmsPreference
Gets the metadata describing how the setting should be edited.- Specified by:
getPropertyDefinition
in interfaceI_CmsPreference
- Overrides:
getPropertyDefinition
in classA_CmsPreference
- Parameters:
cms
- the current CMS context- Returns:
- the metadata for the client which describes how the setting should be edited
- See Also:
A_CmsPreference.getPropertyDefinition(org.opencms.file.CmsObject)
-
-