public class CmsContainerBean
extends java.lang.Object
构造器和说明 |
---|
CmsContainerBean(java.lang.String name,
java.lang.String type,
int maxElements,
java.util.List<CmsContainerElementBean> elements)
Creates a new container bean.
|
CmsContainerBean(java.lang.String name,
java.lang.String type,
java.util.List<CmsContainerElementBean> elements)
Creates a new container bean with an unlimited number of elements.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
containsElement(CmsUUID elementId)
Returns
true if the element with the provided id is contained in this container. |
java.util.Map<CmsUUID,java.lang.Boolean> |
getContainsElement()
Returns a lazy initialized map that describes if a certain element if part of this container.
|
java.util.List<CmsUUID> |
getElementIds()
Returns the id's of all elements in this container.
|
java.util.List<CmsContainerElementBean> |
getElements()
Returns the elements in this container.
|
int |
getMaxElements()
Returns the maximal number of elements in this container.
|
java.lang.String |
getName()
Returns the name of this container.
|
java.lang.String |
getType()
Returns the type of this container.
|
java.lang.String |
getWidth()
Returns the container width set by the rendering container tag.
|
void |
setMaxElements(int maxElements)
Sets the maximal number of elements in the container.
|
void |
setType(java.lang.String type)
Sets the container type.
|
void |
setWidth(java.lang.String width)
Sets the client side render with of this container.
|
public CmsContainerBean(java.lang.String name, java.lang.String type, int maxElements, java.util.List<CmsContainerElementBean> elements)
name
- the container nametype
- the container typemaxElements
- the maximal number of elements in the containerelements
- the elementspublic CmsContainerBean(java.lang.String name, java.lang.String type, java.util.List<CmsContainerElementBean> elements)
name
- the container nametype
- the container typeelements
- the elementspublic boolean containsElement(CmsUUID elementId)
true
if the element with the provided id is contained in this container.elementId
- the element id to checktrue
if the element with the provided id is contained in this containerpublic java.util.Map<CmsUUID,java.lang.Boolean> getContainsElement()
public java.util.List<CmsUUID> getElementIds()
public java.util.List<CmsContainerElementBean> getElements()
public int getMaxElements()
public java.lang.String getName()
public java.lang.String getType()
public java.lang.String getWidth()
public void setMaxElements(int maxElements)
maxElements
- the maximal number of elements to setpublic void setType(java.lang.String type)
type
- the container typepublic void setWidth(java.lang.String width)
width
- the client side render with of this container