Class CmsInheritanceContainerEditor
- 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.CmsInheritanceContainerEditor
-
- 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
public class CmsInheritanceContainerEditor extends A_CmsGroupEditor
The inheritance container editor.- Since:
- 8.5.0
-
-
Field Summary
-
Fields inherited from class org.opencms.ade.containerpage.client.ui.groupeditor.A_CmsGroupEditor
m_containerMarker, m_dialogContent, m_elementData, m_overlayDiv
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CmsInheritanceContainerEditor(CmsGroupContainerElementPanel groupContainer, CmsContainerpageController controller, CmsContainerpageHandler handler)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addButtons()
Adds the buttons to the dialog.protected void
addInputFields()
Adds the required input fields to the dialog.protected void
breakUpContainer()
Breaks up the group container inserting all visible elements into the parent container instead.protected void
cancelEdit()
On click function for cancel button.protected void
clearInstance()
Clears the static instance reference.protected void
closeDialog(boolean breakingUp)
Closes the dialog.static CmsInheritanceContainerEditor
getInstance()
Returns the inheritance container editor instance.void
onSettingsEdited()
Method which should be called after the settings of an element in the inheritance containerhave been edited.static CmsInheritanceContainerEditor
openInheritanceContainerEditor(CmsGroupContainerElementPanel groupContainer, CmsContainerpageController controller, CmsContainerpageHandler handler)
Opens the inheritance container editor.void
reinitializeButtons()
Reinitializes the option bar buttons on the contained elements.void
removeElement(CmsContainerPageElementPanel elementWidget)
Either removes the locally configured element or hides the inherited element.protected void
saveEdit()
On click function for save button.protected void
setInheritContainerData(java.util.Map<java.lang.String,org.opencms.ade.containerpage.shared.CmsContainerElementData> elementsData)
Sets the loaded element data.void
setOptionBar(CmsContainerPageElementPanel elementWidget)
Sets the option bar on the element widget.void
showElement(CmsContainerPageElementPanel elementWidget)
Shows a formerly hidden element and sets the visibility info to true.protected void
toggleElementVisibility()
Toggles the visibility of hidden elements.-
Methods inherited from class org.opencms.ade.containerpage.client.ui.groupeditor.A_CmsGroupEditor
addButton, addCancelButton, addInputField, addSaveButton, 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
-
-
-
-
Constructor Detail
-
CmsInheritanceContainerEditor
protected CmsInheritanceContainerEditor(CmsGroupContainerElementPanel groupContainer, CmsContainerpageController controller, CmsContainerpageHandler handler)
Constructor.- Parameters:
groupContainer
- the group container widgetcontroller
- the container page controllerhandler
- the container page handler
-
-
Method Detail
-
getInstance
public static CmsInheritanceContainerEditor getInstance()
Returns the inheritance container editor instance.- Returns:
- the editor instance
-
openInheritanceContainerEditor
public static CmsInheritanceContainerEditor openInheritanceContainerEditor(CmsGroupContainerElementPanel groupContainer, CmsContainerpageController controller, CmsContainerpageHandler handler)
Opens the inheritance container editor.- Parameters:
groupContainer
- the group-containercontroller
- the container-page controllerhandler
- the container-page handler- Returns:
- the editor instance
-
onSettingsEdited
public void onSettingsEdited()
Method which should be called after the settings of an element in the inheritance containerhave been edited.
-
reinitializeButtons
public void reinitializeButtons()
Description copied from class:A_CmsGroupEditor
Reinitializes the option bar buttons on the contained elements.- Specified by:
reinitializeButtons
in classA_CmsGroupEditor
- See Also:
A_CmsGroupEditor.reinitializeButtons()
-
removeElement
public void removeElement(CmsContainerPageElementPanel elementWidget)
Either removes the locally configured element or hides the inherited element.- Parameters:
elementWidget
- the element widget
-
setOptionBar
public void setOptionBar(CmsContainerPageElementPanel elementWidget)
Sets the option bar on the element widget.- Parameters:
elementWidget
- the element widget
-
showElement
public void showElement(CmsContainerPageElementPanel elementWidget)
Shows a formerly hidden element and sets the visibility info to true.- Parameters:
elementWidget
- the element widget
-
addButtons
protected void addButtons()
Description copied from class:A_CmsGroupEditor
Adds the buttons to the dialog.- Specified by:
addButtons
in classA_CmsGroupEditor
- See Also:
A_CmsGroupEditor.addButtons()
-
addInputFields
protected void addInputFields()
Description copied from class:A_CmsGroupEditor
Adds the required input fields to the dialog.- Specified by:
addInputFields
in classA_CmsGroupEditor
- See Also:
A_CmsGroupEditor.addInputFields()
-
breakUpContainer
protected void breakUpContainer()
Breaks up the group container inserting all visible elements into the parent container instead.
-
cancelEdit
protected void cancelEdit()
Description copied from class:A_CmsGroupEditor
On click function for cancel button.- Specified by:
cancelEdit
in classA_CmsGroupEditor
- See Also:
A_CmsGroupEditor.cancelEdit()
-
clearInstance
protected void clearInstance()
Description copied from class:A_CmsGroupEditor
Clears the static instance reference.- Specified by:
clearInstance
in classA_CmsGroupEditor
- See Also:
A_CmsGroupEditor.clearInstance()
-
closeDialog
protected void closeDialog(boolean breakingUp)
Description copied from class:A_CmsGroupEditor
Closes the dialog.- Overrides:
closeDialog
in classA_CmsGroupEditor
- Parameters:
breakingUp
-true
if the group container is to be removed- See Also:
A_CmsGroupEditor.closeDialog(boolean)
-
saveEdit
protected void saveEdit()
Description copied from class:A_CmsGroupEditor
On click function for save button.- Specified by:
saveEdit
in classA_CmsGroupEditor
- See Also:
A_CmsGroupEditor.saveEdit()
-
setInheritContainerData
protected void setInheritContainerData(java.util.Map<java.lang.String,org.opencms.ade.containerpage.shared.CmsContainerElementData> elementsData)
Sets the loaded element data.- Parameters:
elementsData
- the elements data
-
toggleElementVisibility
protected void toggleElementVisibility()
Toggles the visibility of hidden elements.
-
-