public class CmsSitePreference extends CmsBuiltinPreference
CmsBuiltinPreference.SelectOptions
m_basic, m_hidden
Constructor and Description |
---|
CmsSitePreference(java.lang.String name)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
CmsXmlContentProperty |
getPropertyDefinition()
Gets the user-independent property configuration.
|
CmsXmlContentProperty |
getPropertyDefinition(CmsObject cms)
Gets the metadata describing how the setting should be edited.
|
static java.lang.String |
getSiteSelectOptionsStatic(CmsObject cms,
java.util.Locale locale)
Gets the options for the site selector.
|
getDefaultValue, getName, getTab, getValue, setValue
createConfigurationItem, isDisabled
public CmsSitePreference(java.lang.String name)
name
- the preference namepublic static java.lang.String getSiteSelectOptionsStatic(CmsObject cms, java.util.Locale locale)
cms
- the CMS contextlocale
- the locale for the select optionspublic CmsXmlContentProperty getPropertyDefinition()
A_CmsPreference
This is what is used to write the preference back to the workplace configuration.
getPropertyDefinition
in class CmsBuiltinPreference
A_CmsPreference.getPropertyDefinition(org.opencms.file.CmsObject)
public CmsXmlContentProperty getPropertyDefinition(CmsObject cms)
I_CmsPreference
getPropertyDefinition
in interface I_CmsPreference
getPropertyDefinition
in class A_CmsPreference
cms
- the current CMS contextA_CmsPreference.getPropertyDefinition(org.opencms.file.CmsObject)