public class CmsContainer extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
| Modifier | Constructor and Description |
|---|---|
protected |
CmsContainer()
Hidden default constructor (for GWT serialization).
|
|
CmsContainer(java.lang.String name,
java.lang.String type,
java.lang.String emptyContainerContent,
int width,
int maxElements,
boolean detailView,
boolean editable,
java.util.List<CmsContainerElement> elements,
java.lang.String parentContainerName,
java.lang.String parentInstanceId,
java.util.Map<java.lang.String,java.lang.String> settingPresets)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CmsContainerElement> |
getElements()
Returns the list of the contained elements id's.
|
java.lang.String |
getEmptyContainerContent()
Returns the content to display in case the container is empty.
|
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 |
getParentContainerName()
Returns the parent container name.
|
java.lang.String |
getParentInstanceId()
Returns the parent instance id.
|
java.util.Map<java.lang.String,java.lang.String> |
getSettingPresets() |
java.lang.String |
getType()
Returns the container type.
|
int |
getWidth()
Returns the container width.
|
boolean |
isDetailOnly()
Returns
true if the container is displayed in detail view only. |
boolean |
isDetailView()
Returns if this container is used for detail views.
|
boolean |
isEditable()
Returns if the container is editable by the current user.
|
boolean |
isRootContainer()
Returns if this container not nested,
or in case of a detail only container page the starting point of a detail only container hierarchy.
|
boolean |
isSubContainer()
Returns if this is a sub container.
|
void |
setDeatilOnly(boolean detailOnly)
Sets the detail only flag.
|
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 |
setRootContainer(boolean isRootContainer)
Sets the if this container not nested,
or in case of a detail only container page the starting point of a detail only container hierarchy.
|
void |
setType(java.lang.String type)
Sets the type.
|
static java.util.Set<java.lang.String> |
splitType(java.lang.String containerTypeSpec)
Splits the type attribute of a container into individual types.
|
java.lang.String |
toString() |
public CmsContainer(java.lang.String name, java.lang.String type, java.lang.String emptyContainerContent, int width, int maxElements, boolean detailView, boolean editable, java.util.List<CmsContainerElement> elements, java.lang.String parentContainerName, java.lang.String parentInstanceId, java.util.Map<java.lang.String,java.lang.String> settingPresets)
name - the container name, also used as id within a container-pagetype - the container typeemptyContainerContent - content to display in case the container is emptywidth - the width of the containermaxElements - the maximum number of elements displayed by this containerdetailView - flag indicating this container is used for detail viewseditable - flag indicating the container is editable by the current userelements - the container elements id'sparentContainerName - the parent container nameparentInstanceId - the parent instance idsettingPresets - the presets for container element settingsprotected CmsContainer()
public static java.util.Set<java.lang.String> splitType(java.lang.String containerTypeSpec)
containerTypeSpec - the container type attributepublic java.util.List<CmsContainerElement> getElements()
public java.lang.String getEmptyContainerContent()
public int getMaxElements()
public java.lang.String getName()
public java.lang.String getParentContainerName()
public java.lang.String getParentInstanceId()
public java.util.Map<java.lang.String,java.lang.String> getSettingPresets()
public java.lang.String getType()
public int getWidth()
public boolean isDetailOnly()
true if the container is displayed in detail view only.true if the container is displayed in detail view onlypublic boolean isDetailView()
true if this container is used for detail viewspublic boolean isEditable()
true if the container is editable by the current userpublic boolean isRootContainer()
true if this container not nestedpublic boolean isSubContainer()
true this is a sub containerpublic void setDeatilOnly(boolean detailOnly)
detailOnly - true if the container is displayed in detail view onlypublic 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 setRootContainer(boolean isRootContainer)
isRootContainer - true if this container not nestedpublic void setType(java.lang.String type)
type - the type to setpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()