Class CmsContainerElementData
java.lang.Object
org.opencms.ade.containerpage.shared.CmsContainerElement
org.opencms.ade.containerpage.shared.CmsContainerElementData
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,I_CmsHasIconClasses
Bean holding all element information including it's formatted contents.
- Since:
- 8.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.ade.containerpage.shared.CmsContainerElement
CmsContainerElement.ModelGroupState
-
Field Summary
Fields inherited from class org.opencms.ade.containerpage.shared.CmsContainerElement
CLASS_CONTAINER, CLASS_CONTAINER_ELEMENT_END_MARKER, CLASS_CONTAINER_ELEMENT_START_MARKER, CLASS_ELEMENT_ERROR, CLASS_GROUP_CONTAINER_ELEMENT_MARKER, CREATE_AS_NEW, ELEMENT_INSTANCE_ID, GROUP_CONTAINER_TYPE_NAME, INHERIT_CONTAINER_TYPE_NAME, IS_MODEL_GROUP_ALWAYS_REPLACE, MENU_CONTAINER_ID, MODEL_GROUP_ID, MODEL_GROUP_STATE, SETTING_CREATE_NEW, SETTING_PAGE_ID, SYSTEM_SETTING_PREFIX, USE_AS_COPY_MODEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the contents.getCssResources
(String containerName) Returns the required css resources.Returns the description.getDndId()
Dragging an element may require changing its settings, but this changes the id since it is computed from the settings.getFormatedIndividualSettings
(String containerId) Returns the individual element settings formated with nice-names to be used as additional-info.getFormatterConfig
(String containerName) Returns the current formatter configuration.Gets the formatter collections for the different containers.Returns the inheritance infos off all sub-items.Returns the inheritance name.Returns the last modifying user.long
Returns the last modification date.Gets the list info bean.long
Returns the load time.Returns the navText.getSettingConfig
(String containerName) Gets the setting configuration for this container element.Returns the settings for this container element.Returns the sub-items.getTitle()
Returns the supported container types.getTypes()
If this element represents an element group, this method will return the supported container type.boolean
hasAlternativeFormatters
(String containerName) Returns if there are alternative formatters available for the given container.boolean
hasSettings
(String containerId) Returns if the element may have settings.boolean
Returns true if the element's type is disabled in the sitemap configuration.boolean
Returns true if copying of the element should be disabled.boolean
isGroup()
Returns if this element is used as a group.boolean
isShowInContext
(String currentContext) Returns true if the element should be shown in the current template context.void
setAddDisabled
(boolean typeDisabled) Sets the 'is type disabled' flag (type is disabled in the sitemap configuration).void
setContents
(Map<String, String> contents) Sets the contents.void
setCopyDisabled
(boolean copyDisabled) Sets the 'copy disabled' status.void
setDescription
(String description) Sets the description.void
During dragging and dropping in the container page editor, it may be required to substitute a different element for the element being dragged.void
setFormatters
(Map<String, CmsFormatterConfigCollection> formatters) Sets the formatter configurations.void
setGroup
(boolean isGroup) Sets if this element is used as a group.void
setInheritanceInfos
(List<CmsInheritanceInfo> inheritanceInfos) Sets the inheritance infos.void
setInheritanceName
(String inheritanceName) Sets the inheritance name.void
setLastModifiedByUser
(String lastModifiedByUser) Sets the modifying userdByUser.void
setLastModifiedDate
(long lastModifiedDate) Sets the last modification date.void
setListInfo
(CmsListInfoBean listInfo) Sets the list info bean.void
setLoadTime
(long loadTime) Sets the load time.void
setNavText
(String navText) Sets the navText.void
setSettings
(Map<String, String> settings) Sets the settings for this container element.void
setSubItems
(List<String> subItems) Sets the sub-items.void
Sets the title.void
Sets the supported container types.toString()
Methods inherited from class org.opencms.ade.containerpage.shared.CmsContainerElement
copy, getBigIconClasses, getClientId, getElementView, getInheritanceInfo, getLockInfo, getModelGroupId, getNoEditReason, getResourceType, getSitePath, getSmallIconClasses, getSubTitle, hasEditHandler, hasViewPermission, hasWritePermission, isCopyInModels, isCreateNew, isGroupContainer, isInheritContainer, isModelGroup, isModelGroupAlwaysReplace, isNew, isNewEditorDisabled, isReleasedAndNotExpired, isReused, isWasModelGroup, setClientId, setCopyInModels, setCreateNew, setElementView, setHasEditHandler, setHasSettings, setIconClasses, setInheritanceInfo, setLockInfo, setModelGroupAlwaysReplace, setModelGroupId, setNew, setNewEditorDisabled, setPermissionInfo, setReleasedAndNotExpired, setResourceType, setReused, setSitePath, setSubTitle, setWasModelGroup
-
Constructor Details
-
CmsContainerElementData
public CmsContainerElementData()Creates a new instance.
-
-
Method Details
-
getContents
Returns the contents.- Returns:
- the contents
-
getCssResources
Returns the required css resources.- Parameters:
containerName
- the current container name- Returns:
- the required css resources
-
getDescription
Returns the description.- Returns:
- the description
-
getDndId
Dragging an element may require changing its settings, but this changes the id since it is computed from the settings. In the DND case this method returns the client id of the element with the changed settings.- Returns:
- the drag and drop element id, or null if it isn't available or needed
-
getFormatedIndividualSettings
Returns the individual element settings formated with nice-names to be used as additional-info.- Parameters:
containerId
- the container id- Returns:
- the settings list
-
getFormatterConfig
Returns the current formatter configuration.- Parameters:
containerName
- the current container name- Returns:
- the current formatter configuration
-
getFormatters
Gets the formatter collections for the different containers.- Returns:
- the formatter collections for the containers
-
getInheritanceInfos
Returns the inheritance infos off all sub-items.- Returns:
- the inheritance infos off all sub-items.
-
getInheritanceName
Returns the inheritance name.- Returns:
- the inheritance name
-
getLastModifiedByUser
Returns the last modifying user.- Returns:
- the last modifying user
-
getLastModifiedDate
Returns the last modification date.- Returns:
- the last modification date
-
getListInfo
Gets the list info bean.- Returns:
- the list info bean
-
getLoadTime
Returns the load time.- Returns:
- the load time
-
getSettingConfig
Gets the setting configuration for this container element.- Parameters:
containerName
- the current container name- Returns:
- the setting configuration map
-
getSettings
Returns the settings for this container element.- Returns:
- a map of settings
-
getSubItems
Returns the sub-items.- Returns:
- the sub-items
-
getTitle
Returns the supported container types.- Overrides:
getTitle
in classCmsContainerElement
- Returns:
- the supported container types
-
getTypes
If this element represents an element group, this method will return the supported container type.- Returns:
- the supported container types
-
hasAlternativeFormatters
Returns if there are alternative formatters available for the given container.- Parameters:
containerName
- the container name- Returns:
true
if there are alternative formatters available for the given container
-
hasSettings
Description copied from class:CmsContainerElement
Returns if the element may have settings.- Overrides:
hasSettings
in classCmsContainerElement
- Parameters:
containerId
- the container id- Returns:
true
if the element may have settings- See Also:
-
isAddDisabled
Returns true if the element's type is disabled in the sitemap configuration.- Returns:
- true if the type is disabled
-
isCopyDisabled
Returns true if copying of the element should be disabled.- Returns:
- true if copying of the element should be disabled
-
isGroup
Returns if this element is used as a group.- Returns:
- if this element is used as a group
-
isShowInContext
Returns true if the element should be shown in the current template context.- Parameters:
currentContext
- the current template context- Returns:
- true if the element should be shown
-
setAddDisabled
Sets the 'is type disabled' flag (type is disabled in the sitemap configuration).- Parameters:
typeDisabled
- the new value
-
setContents
Sets the contents.- Parameters:
contents
- the contents to set
-
setCopyDisabled
Sets the 'copy disabled' status.- Parameters:
copyDisabled
- true if copying should be disabled
-
setDescription
Sets the description.- Parameters:
description
- the description to set
-
setDndId
During dragging and dropping in the container page editor, it may be required to substitute a different element for the element being dragged. This sets the id of the element to substitute.- Parameters:
dndId
- the drag and drop replacement element's client id
-
setFormatters
Sets the formatter configurations.- Parameters:
formatters
- the formatter configurations to set
-
setGroup
Sets if this element is used as a group.- Parameters:
isGroup
- if this element is used as a group
-
setInheritanceInfos
Sets the inheritance infos.- Parameters:
inheritanceInfos
- the inheritance infos to set
-
setInheritanceName
Sets the inheritance name.- Parameters:
inheritanceName
- the inheritance name to set
-
setLastModifiedByUser
Sets the modifying userdByUser.- Parameters:
lastModifiedByUser
- the last modifying user to set
-
setLastModifiedDate
Sets the last modification date.- Parameters:
lastModifiedDate
- the last modification date to set
-
setLoadTime
Sets the load time.- Parameters:
loadTime
- the load time to set
-
setSettings
Sets the settings for this container element.- Parameters:
settings
- the new settings
-
setSubItems
Sets the sub-items.- Parameters:
subItems
- the sub-items to set
-
setTitle
Sets the title.- Overrides:
setTitle
in classCmsContainerElement
- Parameters:
title
- the title to set
-
setTypes
Sets the supported container types.- Parameters:
types
- the supported container types to set
-
toString
-