|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.xml.containerpage.CmsContainerBean
public class CmsContainerBean
One container of a container page.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
setWidth(java.lang.String width)
Sets the client side render with of this container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsContainerBean(java.lang.String name, java.lang.String type, java.util.List<CmsContainerElementBean> elements)
name
- the container nametype
- the container typeelements
- the elementspublic 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 elementsMethod Detail |
---|
public boolean containsElement(CmsUUID elementId)
true
if the element with the provided id is contained in this container.
elementId
- the element id to check
true
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 setWidth(java.lang.String width)
width
- the client side render with of this container
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |