Package org.opencms.xml.containerpage
Class CmsFunctionFormatterBean
java.lang.Object
org.opencms.xml.containerpage.CmsFormatterBean
org.opencms.xml.containerpage.CmsFunctionFormatterBean
- All Implemented Interfaces:
Cloneable
,I_CmsFormatterBean
A bean containing formatter configuration data as strings.
-
Field Summary
Fields inherited from class org.opencms.xml.containerpage.CmsFormatterBean
DEFAULT_CONFIGURATION_RANK, DEFAULT_SCHEMA_RANK, m_aliasKeys, m_containerTypes, m_cssHeadIncludes, m_description, m_displayType, m_id, m_inlineCss, m_inlineJavascript, m_isAutoEnabled, m_isDetail, m_isFromFormatterConfigFile, m_isPreviewFormatter, m_javascriptHeadIncludes, m_jspRootPath, m_jspStructureId, m_key, m_location, m_matchAll, m_maxWidth, m_metaMappings, m_minWidth, m_nestedFormatterSettings, m_niceName, m_plugins, m_rank, m_resourceTypeNames, m_search, m_strictContainers, m_useMetaMappingsForNormalElements, PREVIEW_TYPE, PREVIEW_WIDTH, WILDCARD_TYPE
-
Constructor Summary
ConstructorDescriptionCmsFunctionFormatterBean
(Set<String> containerTypes, String jspRootPath, CmsUUID jspStructureId, String key, Set<String> aliasKeys, CmsUUID functionFormatterId, int minWidth, int maxWidth, String location, List<String> cssHeadIncludes, String inlineCss, List<String> javascriptHeadIncludes, String inlineJavascript, List<CmsTemplatePlugin> plugins, String niceName, String description, String id, CmsSettingConfiguration settingConfig, boolean isAllowsSettingsInEditor, boolean isStrictContainers, Map<String, String[]> parameters) Constructor for creating a new formatter configuration with resource structure id. -
Method Summary
Modifier and TypeMethodDescriptionReturns the root path of the formatter JSP in the OpenCms VFS.Returns the structure id of the JSP resource for this formatter.Gets the parameters the dynamic function should set for the included JSP.int
getRank()
Gets the rank.Gets the actual JSP id of the function.Gets the root path of the configured JSP.Gets the resource type names.Methods inherited from class org.opencms.xml.containerpage.CmsFormatterBean
getAliasKeys, getAllKeys, getAttributes, getContainerTypes, getCssHeadIncludes, getDescription, getDisplayType, getId, getInlineCss, getInlineJavascript, getJavascriptHeadIncludes, getKey, getLocation, getMaxWidth, getMetaMappings, getMinWidth, getNiceName, getSettings, getTemplatePlugins, hashCode, hasNestedFormatterSettings, isAllowsSettingsInEditor, isAutoEnabled, isDetailFormatter, isDisplayFormatter, isFromFormatterConfigFile, isMatchAll, isPreviewFormatter, isPreviewType, isSearchContent, isStrictContainers, isTypeFormatter, setJspStructureId, toString, useMetaMappingsForNormalElements, withKeys
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opencms.xml.containerpage.I_CmsFormatterBean
getKeyOrId
-
Constructor Details
-
CmsFunctionFormatterBean
public CmsFunctionFormatterBean(Set<String> containerTypes, String jspRootPath, CmsUUID jspStructureId, String key, Set<String> aliasKeys, CmsUUID functionFormatterId, int minWidth, int maxWidth, String location, List<String> cssHeadIncludes, String inlineCss, List<String> javascriptHeadIncludes, String inlineJavascript, List<CmsTemplatePlugin> plugins, String niceName, String description, String id, CmsSettingConfiguration settingConfig, boolean isAllowsSettingsInEditor, boolean isStrictContainers, Map<String, String[]> parameters) Constructor for creating a new formatter configuration with resource structure id.- Parameters:
containerTypes
- the formatter container typesjspRootPath
- the formatter JSP VFS root pathjspStructureId
- the structure id of the formatter JSPkey
- the keyaliasKeys
- the alias keysfunctionFormatterId
- the standard function formatter structure idminWidth
- the formatter min widthmaxWidth
- the formatter max widthlocation
- the location where this formatter was defined, should be an OpenCms VFS resource pathcssHeadIncludes
- the CSS head includesinlineCss
- the in-line CSSjavascriptHeadIncludes
- the JavaScript headincludesinlineJavascript
- the in-line JavaScriptplugins
- the template pluginsniceName
- the configuration display namedescription
- the description text for the formatterid
- the configuration idsettingConfig
- the settings configurationisAllowsSettingsInEditor
- whether this formatter allows settings to be edited in the content editorisStrictContainers
-true
if this formatter will always render all nested containersparameters
- the request parameters to add for the included JSP
-
-
Method Details
-
getJspRootPath
Description copied from interface:I_CmsFormatterBean
Returns the root path of the formatter JSP in the OpenCms VFS.- Specified by:
getJspRootPath
in interfaceI_CmsFormatterBean
- Overrides:
getJspRootPath
in classCmsFormatterBean
- Returns:
- the root path of the formatter JSP in the OpenCms VFS.
- See Also:
-
getJspStructureId
Description copied from interface:I_CmsFormatterBean
Returns the structure id of the JSP resource for this formatter.- Specified by:
getJspStructureId
in interfaceI_CmsFormatterBean
- Overrides:
getJspStructureId
in classCmsFormatterBean
- Returns:
- the structure id of the JSP resource for this formatter
- See Also:
-
getParameters
Gets the parameters the dynamic function should set for the included JSP.- Returns:
- the map of parameters to add for the included JSP
-
getRank
Description copied from interface:I_CmsFormatterBean
Gets the rank.- Specified by:
getRank
in interfaceI_CmsFormatterBean
- Overrides:
getRank
in classCmsFormatterBean
- Returns:
- the rank
- See Also:
-
getRealJspId
Gets the actual JSP id of the function.- Returns:
- the JSP structure id
-
getRealJspRootPath
Gets the root path of the configured JSP.- Returns:
- the root path of the configured JSP
-
getResourceTypeNames
Description copied from interface:I_CmsFormatterBean
Gets the resource type names.- Specified by:
getResourceTypeNames
in interfaceI_CmsFormatterBean
- Overrides:
getResourceTypeNames
in classCmsFormatterBean
- Returns:
- the resource type names
- See Also:
-