public class CmsContainer
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable
限定符 | 构造器和说明 |
---|---|
protected |
CmsContainer()
Hidden default constructor (for GWT serialization).
|
|
CmsContainer(java.lang.String name,
java.lang.String type,
int width,
int maxElements,
boolean detailView,
java.util.List<CmsContainerElement> elements)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<CmsContainerElement> |
getElements()
Returns the list of the contained elements id's.
|
int |
getMaxElements()
Returns the maximum number of elements allowed in this container.
|
java.lang.String |
getName()
Returns the container name, also used as HTML-id for the container DOM-element.
|
java.lang.String |
getType()
Returns the container type.
|
int |
getWidth()
Returns the container width.
|
boolean |
isDetailView()
Returns if this container is used for detail views.
|
void |
setElements(java.util.List<CmsContainerElement> elements)
Sets the elements contained in this container.
|
void |
setMaxElements(int maxElements)
Sets the maxElements.
|
void |
setName(java.lang.String name)
Sets the name.
|
void |
setType(java.lang.String type)
Sets the type.
|
public CmsContainer(java.lang.String name, java.lang.String type, int width, int maxElements, boolean detailView, java.util.List<CmsContainerElement> elements)
name
- the container name, also used as id within a container-pagetype
- the container typewidth
- the width of the containermaxElements
- the maximum number of elements displayed by this containerdetailView
- flag indicating this container is used for detail viewselements
- the container elements id'sprotected CmsContainer()
public boolean isDetailView()
true
if this container is used for detail viewspublic java.util.List<CmsContainerElement> getElements()
public int getMaxElements()
public java.lang.String getName()
public java.lang.String getType()
public int getWidth()
public void setElements(java.util.List<CmsContainerElement> elements)
elements
- the elementspublic void setMaxElements(int maxElements)
maxElements
- the maxElements to setpublic void setName(java.lang.String name)
name
- the name to setpublic void setType(java.lang.String type)
type
- the type to set