public class CmsDetailOnlyContainerPageBuilder extends java.lang.Object
To use this helper, you will need to set the type or width of each container and then add the resources to be used as container elements. The type or width must be set because this helper tries to automatically determine a default formatter for each container element.
Finally, call the build() method to produce the desired container page bean Element settings and nested containers are currently not supported.
| Modifier and Type | Class and Description |
|---|---|
static class |
CmsDetailOnlyContainerPageBuilder.ContainerInfo
Bean containing the information for a single container.
|
| Constructor and Description |
|---|
CmsDetailOnlyContainerPageBuilder(CmsObject cms,
CmsADEConfigData config)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContainerElement(java.lang.String name,
CmsResource resource)
Adds a resource to a container as an element.
|
CmsContainerPageBean |
build()
Builds the container page bean.
|
void |
setContainerType(java.lang.String name,
java.lang.String type)
Sets the type of a container.
|
void |
setContainerWidth(java.lang.String name,
java.lang.String width)
Sets the width of a container.
|
public CmsDetailOnlyContainerPageBuilder(CmsObject cms, CmsADEConfigData config)
cms - the current CMS contextconfig - the sitemap configuration which should be used to determine thepublic void addContainerElement(java.lang.String name, CmsResource resource)
name - the container nameresource - the resource to add as a container elementvpublic CmsContainerPageBean build()
public void setContainerType(java.lang.String name, java.lang.String type)
name - the container nametype - the container typepublic void setContainerWidth(java.lang.String name, java.lang.String width)
name - the container namewidth - the container width