Class A_CmsGroupEditor
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
- 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
- Direct Known Subclasses:
CmsGroupContainerEditor
,CmsInheritanceContainerEditor
Abstract group editor.
- Since:
- 8.5.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
Modifier and TypeFieldDescriptionprotected com.google.gwt.dom.client.DivElement
The container marker div element.protected com.google.gwt.user.client.ui.FlowPanel
The dialog element.protected org.opencms.ade.containerpage.shared.CmsContainerElementData
The container element data.protected com.google.gwt.dom.client.DivElement
The overlay div element.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
ModifierConstructorDescriptionprotected
A_CmsGroupEditor
(CmsGroupContainerElementPanel groupContainer, CmsContainerpageController controller, CmsContainerpageHandler handler) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addButton
(com.google.gwt.user.client.ui.Widget button) Adds a button to the dialog.protected abstract void
Adds the buttons to the dialog.protected void
Adds a cancel button to the dialog.protected void
addInputField
(String label, com.google.gwt.user.client.ui.Widget inputWidget) Adds an input field with the given label to the dialog.protected abstract void
Adds the required input fields to the dialog.protected void
Adds the save button to the dialog.protected abstract void
On click function for cancel button.protected abstract void
Clears the static instance reference.protected void
closeDialog
(boolean breakingUp) Closes the dialog.protected com.google.gwt.dom.client.Element
createPlaceholder
(com.google.gwt.dom.client.Element element) Creates a place-holder for the group-container.protected List<CmsContainerPageElementPanel>
Returns the list of back up elements.protected CmsContainerpageController
Returns the container page controller.Returns the ids of the contained elements and group-container itself.protected List<org.opencms.ade.containerpage.shared.CmsContainerElement>
Returns the element data of the contained elements.Returns the group container widget.Returns the the container page handler.protected int
Returns the group container widget index position.protected CmsContainerPageContainer
Returns the parent container widget.void
Hides the editor pop-up.protected void
openDialog
(String dialogTitle) Opens the group container edit dialog.abstract void
Reinitializes the option bar buttons on the contained elements.protected void
Removes all child container elements.protected abstract void
saveEdit()
On click function for save button.protected void
setSaveEnabled
(boolean enabled, String disabledMessage) Enables or disables the save button.void
Shows the editor pop-up.void
updateBackupElements
(Map<String, org.opencms.ade.containerpage.shared.CmsContainerElementData> updateElements) Updates the backup elements.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
-
Field Details
-
m_containerMarker
The container marker div element. -
m_dialogContent
The dialog element. -
m_elementData
The container element data. -
m_overlayDiv
The overlay div element.
-
-
Constructor Details
-
A_CmsGroupEditor
protected A_CmsGroupEditor(CmsGroupContainerElementPanel groupContainer, CmsContainerpageController controller, CmsContainerpageHandler handler) Constructor.- Parameters:
groupContainer
- the group-containercontroller
- the container-page controllerhandler
- the container-page handler
-
-
Method Details
-
getGroupContainerWidget
Returns the group container widget.- Returns:
- the group container widget
-
getHandler
Returns the the container page handler.- Returns:
- the the container page handler
-
hidePopup
Hides the editor pop-up. Use during inline editing. -
reinitializeButtons
Reinitializes the option bar buttons on the contained elements. -
showPopup
Shows the editor pop-up. -
updateBackupElements
public void updateBackupElements(Map<String, org.opencms.ade.containerpage.shared.CmsContainerElementData> updateElements) Updates the backup elements.- Parameters:
updateElements
- the updated element data
-
addButton
Adds a button to the dialog.- Parameters:
button
- the button to add
-
addButtons
Adds the buttons to the dialog. -
addCancelButton
Adds a cancel button to the dialog. -
addInputField
Adds an input field with the given label to the dialog.- Parameters:
label
- the labelinputWidget
- the input widget
-
addInputFields
Adds the required input fields to the dialog. -
addSaveButton
Adds the save button to the dialog. -
cancelEdit
On click function for cancel button. -
clearInstance
Clears the static instance reference. -
closeDialog
Closes the dialog.- Parameters:
breakingUp
-true
if the group container is to be removed
-
createPlaceholder
protected com.google.gwt.dom.client.Element createPlaceholder(com.google.gwt.dom.client.Element element) Creates a place-holder for the group-container.- Parameters:
element
- the element- Returns:
- the place-holder widget
-
getBackUpElements
Returns the list of back up elements.- Returns:
- the back up elements
-
getController
Returns the container page controller.- Returns:
- the container page controller
-
getElementIds
Returns the ids of the contained elements and group-container itself.- Returns:
- the element ids
-
getElements
Returns the element data of the contained elements.- Returns:
- the contained elements data
-
getIndexPosition
Returns the group container widget index position.- Returns:
- the index position
-
getParentContainer
Returns the parent container widget.- Returns:
- the parent container widget
-
openDialog
Opens the group container edit dialog.- Parameters:
dialogTitle
- the dialog title
-
removeAllChildren
Removes all child container elements. -
saveEdit
On click function for save button. -
setSaveEnabled
Enables or disables the save button.- Parameters:
enabled
-true
to enable the save buttondisabledMessage
- the message to display when the button is disabled
-