Class CmsGroupContainerEditor
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.ade.containerpage.client.ui.groupeditor.A_CmsGroupEditor
org.opencms.ade.containerpage.client.ui.groupeditor.CmsGroupContainerEditor
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.IsRenderable
,com.google.gwt.user.client.ui.IsWidget
The group-container editor.
- Since:
- 8.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
-
Field Summary
Fields inherited from class org.opencms.ade.containerpage.client.ui.groupeditor.A_CmsGroupEditor
m_containerMarker, m_dialogContent, m_elementData, m_overlayDiv
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds the buttons to the dialog.protected void
Adds the required input fields to the dialog.protected void
Breaks up the group container inserting it's elements into the parent container instead.protected void
breakUpContainer
(List<org.opencms.ade.containerpage.shared.CmsContainerElement> elements, Map<String, org.opencms.ade.containerpage.shared.CmsContainerElementData> elementsData) Breaks up the group container inserting the given elements into the parent container instead.protected void
On click function for cancel button.protected void
Clears the static instance reference.static CmsGroupContainerEditor
Gets the editor instance.static boolean
isActive()
Returns true if the editor is active.static CmsGroupContainerEditor
openGroupcontainerEditor
(CmsGroupContainerElementPanel groupContainer, CmsContainerpageController controller, CmsContainerpageHandler handler) Opens the group container editor.void
Reinitializes the option bar buttons on the contained elements.protected void
saveEdit()
On click function for save button.protected void
setGroupContainerData
(Map<String, org.opencms.ade.containerpage.shared.CmsContainerElementData> elementsData) Sets the data of the group-container to edit.Methods inherited from class org.opencms.ade.containerpage.client.ui.groupeditor.A_CmsGroupEditor
addButton, addCancelButton, addInputField, addSaveButton, closeDialog, createPlaceholder, getBackUpElements, getController, getElementIds, getElements, getGroupContainerWidget, getHandler, getIndexPosition, getParentContainer, hidePopup, openDialog, removeAllChildren, setSaveEnabled, showPopup, updateBackupElements
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Method Details
-
getInstance
Gets the editor instance.- Returns:
- the editor instance
-
isActive
Returns true if the editor is active.- Returns:
- true if the editor is active
-
openGroupcontainerEditor
public static CmsGroupContainerEditor openGroupcontainerEditor(CmsGroupContainerElementPanel groupContainer, CmsContainerpageController controller, CmsContainerpageHandler handler) Opens the group container editor.- Parameters:
groupContainer
- the group containercontroller
- the container page controllerhandler
- the container page handler- Returns:
- the editor instance
-
reinitializeButtons
Description copied from class:A_CmsGroupEditor
Reinitializes the option bar buttons on the contained elements.- Specified by:
reinitializeButtons
in classA_CmsGroupEditor
- See Also:
-
addButtons
Description copied from class:A_CmsGroupEditor
Adds the buttons to the dialog.- Specified by:
addButtons
in classA_CmsGroupEditor
- See Also:
-
addInputFields
Description copied from class:A_CmsGroupEditor
Adds the required input fields to the dialog.- Specified by:
addInputFields
in classA_CmsGroupEditor
- See Also:
-
breakUpContainer
Breaks up the group container inserting it's elements into the parent container instead. -
breakUpContainer
protected void breakUpContainer(List<org.opencms.ade.containerpage.shared.CmsContainerElement> elements, Map<String, org.opencms.ade.containerpage.shared.CmsContainerElementData> elementsData) Breaks up the group container inserting the given elements into the parent container instead.- Parameters:
elements
- the group container elementselementsData
- the elements data
-
cancelEdit
Description copied from class:A_CmsGroupEditor
On click function for cancel button.- Specified by:
cancelEdit
in classA_CmsGroupEditor
- See Also:
-
clearInstance
Description copied from class:A_CmsGroupEditor
Clears the static instance reference.- Specified by:
clearInstance
in classA_CmsGroupEditor
- See Also:
-
saveEdit
Description copied from class:A_CmsGroupEditor
On click function for save button.- Specified by:
saveEdit
in classA_CmsGroupEditor
- See Also:
-
setGroupContainerData
protected void setGroupContainerData(Map<String, org.opencms.ade.containerpage.shared.CmsContainerElementData> elementsData) Sets the data of the group-container to edit.- Parameters:
elementsData
- the data of all contained elements and the group-container itself
-