Class CmsFormatterConfig
java.lang.Object
org.opencms.ade.containerpage.shared.CmsFormatterConfig
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsFormatterConfig
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
Formatter configuration data.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for serialization only.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the required CSS resources.Gets the description.getId()
Returns the formatter configuration id.Returns the inline CSS.Returns the formatter root path.getKey()
getLabel()
Returns the formatter label.Returns the nested formatters prefixes and their labels.Returns the settings configuration.static String
getSettingsKeyForContainer
(String containerName) Returns the formatter configuration settings key for the given container name.boolean
Returns if the formatter has inline CSS.void
setCssResources
(Set<String> cssResources) Sets the required CSS resources.void
setDescription
(String description) Sets the description.void
setInlineCss
(String inlineCss) Sets the inline CSS.void
setJspRootPath
(String jspRootPath) Sets the formatter root path.void
void
Sets the formatter label.void
setNestedFormatterPrefixes
(Map<String, String> nestedFormatterPrefixes) Sets the nested formatters prefixes and their labels.void
setSettingConfig
(Map<String, CmsXmlContentProperty> settingConfig) Sets the settings configuration.
-
Field Details
-
FORMATTER_SETTINGS_KEY
Key for the formatter configuration id setting. Append the container name to the key, to store container depending values.- See Also:
-
SCHEMA_FORMATTER_ID
Id used for schema based formatters.- See Also:
-
-
Constructor Details
-
CmsFormatterConfig
Constructor.- Parameters:
id
- the formatter id
-
CmsFormatterConfig
protected CmsFormatterConfig()Constructor for serialization only.
-
-
Method Details
-
getSettingsKeyForContainer
Returns the formatter configuration settings key for the given container name.- Parameters:
containerName
- the container name- Returns:
- the settings key
-
getCssResources
Returns the required CSS resources.- Returns:
- the CSS resources
-
getDescription
Gets the description.- Returns:
- the description
-
getId
Returns the formatter configuration id.- Returns:
- the configuration id
-
getInlineCss
Returns the inline CSS.- Returns:
- the inline CSS
-
getJspRootPath
Returns the formatter root path.- Returns:
- the formatter root path
-
getKey
-
getKeyOrId
-
getLabel
Returns the formatter label.- Returns:
- the label
-
getNestedFormatterPrefixes
Returns the nested formatters prefixes and their labels.- Returns:
- the nested formatters prefixes and their labels
-
getSettingConfig
Returns the settings configuration.- Returns:
- the settings configuration
-
hasInlineCss
Returns if the formatter has inline CSS.- Returns:
true
if the formatter has inline CSS
-
setCssResources
Sets the required CSS resources.- Parameters:
cssResources
- the CSS resources
-
setDescription
Sets the description.- Parameters:
description
- the description
-
setInlineCss
Sets the inline CSS.- Parameters:
inlineCss
- the inline CSS
-
setJspRootPath
Sets the formatter root path.- Parameters:
jspRootPath
- the formatter root path
-
setKey
-
setLabel
Sets the formatter label.- Parameters:
label
- the label
-
setNestedFormatterPrefixes
Sets the nested formatters prefixes and their labels.- Parameters:
nestedFormatterPrefixes
- the nested formatters prefixes and their labels to set
-
setSettingConfig
Sets the settings configuration.- Parameters:
settingConfig
- the settings configuration
-