Package org.opencms.jsp.util
Class CmsJspContainerPageWrapper
java.lang.Object
org.opencms.jsp.util.CmsJspContainerPageWrapper
Wrapper for using container pages in JSPs.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsElement
(CmsUUID elementId) Checks if the page contains an element with a given id.Gets the containers.Returns a map which tracks which element ids are part of the page.Gets the element ids.Gets the container elementsgetNames()
Gets the container names.Map<?,
?> getSettingsForElement
(String elementInstanceId) Gets the element settings for the element with the specific instance id.getTypes()
renderContainer
(CmsJspStandardContextBean context, String name) Renders the element in the container with the given name or name prefix.
-
Constructor Details
-
CmsJspContainerPageWrapper
Creates a new instance.- Parameters:
page
- the container page to wrap
-
-
Method Details
-
containsElement
Checks if the page contains an element with a given id.- Parameters:
elementId
- the element id to check- Returns:
- true if the page contains the element
-
getContainers
Gets the containers.- Returns:
- the containers
-
getContainsElement
Returns a map which tracks which element ids are part of the page.- Returns:
- a map from element ids to their page membership
-
getElementIds
Gets the element ids.- Returns:
- the container element ids
-
getElements
Gets the container elements- Returns:
- the container elements
-
getNames
Gets the container names.- Returns:
- the container names
-
getSettingsForElement
Gets the element settings for the element with the specific instance id.The returned map contains the setting names as keys and the corresponding setting values as wrapper objects.
- Parameters:
elementInstanceId
- the element instance id- Returns:
- the map of setting wrappers
-
getTypes
-
renderContainer
Renders the element in the container with the given name or name prefix.- Parameters:
context
- the context beanname
- the container name or name prefix- Returns:
- the rendered HTML
-