Class CmsContainerpageUtil
java.lang.Object
org.opencms.ade.containerpage.client.CmsContainerpageUtil
Utility class for the container-page editor.
- Since:
- 8.0.0
-
Constructor Summary
ConstructorDescriptionCmsContainerpageUtil
(CmsContainerpageController controller, A_CmsToolbarOptionButton... optionButtons) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOptionBar
(CmsContainerPageElementPanel element) Adds an option bar to the given drag element.void
consumeContainerElements
(I_CmsDropContainer container) Transforms all contained elements intoCmsContainerPageElementPanel
.consumeContainers
(Map<String, org.opencms.ade.containerpage.shared.CmsContainer> containers, com.google.gwt.dom.client.Element context) The method will createCmsContainerPageContainer
object for all given containers by converting the associated DOM elements.createElement
(org.opencms.ade.containerpage.shared.CmsContainerElementData containerElement, I_CmsDropContainer container, boolean isNew) Creates an drag container element.createGroupcontainerElement
(org.opencms.ade.containerpage.shared.CmsContainerElementData containerElement, List<org.opencms.ade.containerpage.shared.CmsContainerElementData> subElements, I_CmsDropContainer container) Creates a drag container element for group-container elements.createListItem
(org.opencms.ade.containerpage.shared.CmsContainerElementData containerElement) Creates a list item.protected CmsContainerpageController
Returns the container page controller.
-
Constructor Details
-
CmsContainerpageUtil
public CmsContainerpageUtil(CmsContainerpageController controller, A_CmsToolbarOptionButton... optionButtons) Constructor.- Parameters:
controller
- the container page controlleroptionButtons
- the tool-bar option buttons
-
-
Method Details
-
addOptionBar
Adds an option bar to the given drag element.- Parameters:
element
- the element
-
consumeContainerElements
Transforms all contained elements intoCmsContainerPageElementPanel
.- Parameters:
container
- the container
-
consumeContainers
public Map<String,CmsContainerPageContainer> consumeContainers(Map<String, org.opencms.ade.containerpage.shared.CmsContainer> containers, com.google.gwt.dom.client.Element context) The method will createCmsContainerPageContainer
object for all given containers by converting the associated DOM elements. The contained elements will be transformed intoCmsContainerPageElementPanel
.- Parameters:
containers
- the container datacontext
- the parent element to the containers- Returns:
- the drag target containers
-
getController
Returns the container page controller.- Returns:
- the container page controller
-