public class CmsContainerpageUtil
extends java.lang.Object
构造器和说明 |
---|
CmsContainerpageUtil(CmsContainerpageController controller,
A_CmsToolbarOptionButton... optionButtons)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addOptionBar(CmsContainerPageElementPanel element)
Adds an option bar to the given drag element.
|
void |
consumeContainerElements(I_CmsDropContainer container)
Transforms all contained elements into
CmsContainerPageElementPanel . |
java.util.Map<java.lang.String,CmsContainerPageContainer> |
consumeContainers(java.util.Map<java.lang.String,CmsContainerJso> containers)
The method will create
CmsContainerPageContainer object for all given containers
by converting the associated DOM elements. |
CmsContainerPageElementPanel |
createElement(CmsContainerElementData containerElement,
I_CmsDropContainer container)
Creates an drag container element.
|
CmsContainerPageElementPanel |
createGroupcontainerElement(CmsContainerElementData containerElement,
java.util.List<CmsContainerElementData> subElements,
I_CmsDropContainer container)
Creates a drag container element for group-container elements.
|
CmsMenuListItem |
createListItem(CmsContainerElementData containerElement)
Creates a list item.
|
protected CmsContainerpageController |
getController()
Returns the container page controller.
|
public CmsContainerpageUtil(CmsContainerpageController controller, A_CmsToolbarOptionButton... optionButtons)
controller
- the container page controlleroptionButtons
- the tool-bar option buttonspublic void addOptionBar(CmsContainerPageElementPanel element)
element
- the elementpublic void consumeContainerElements(I_CmsDropContainer container)
CmsContainerPageElementPanel
.container
- the containerpublic java.util.Map<java.lang.String,CmsContainerPageContainer> consumeContainers(java.util.Map<java.lang.String,CmsContainerJso> containers)
CmsContainerPageContainer
object for all given containers
by converting the associated DOM elements. The contained elements will be transformed into CmsContainerPageElementPanel
.containers
- the container datapublic CmsContainerPageElementPanel createElement(CmsContainerElementData containerElement, I_CmsDropContainer container) throws java.lang.Exception
containerElement
- the container element datacontainer
- the container parentjava.lang.Exception
- if something goes wrongpublic CmsContainerPageElementPanel createGroupcontainerElement(CmsContainerElementData containerElement, java.util.List<CmsContainerElementData> subElements, I_CmsDropContainer container) throws java.lang.Exception
containerElement
- the container element datasubElements
- the sub-elementscontainer
- the drag parentjava.lang.Exception
- if something goes wrongpublic CmsMenuListItem createListItem(CmsContainerElementData containerElement)
containerElement
- the element dataprotected CmsContainerpageController getController()