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
The inheritance container 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
Fields inherited from class org.opencms.ade.containerpage.client.ui.groupeditor.A_CmsGroupEditor
m_containerMarker, m_dialogContent, m_elementData, m_overlayDivFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCmsInheritanceContainerEditor(CmsGroupContainerElementPanel groupContainer, CmsContainerpageController controller, CmsContainerpageHandler handler) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds the buttons to the dialog.protected voidAdds the required input fields to the dialog.protected voidBreaks up the group container inserting all visible elements into the parent container instead.protected voidOn click function for cancel button.protected voidClears the static instance reference.protected voidcloseDialog(boolean breakingUp) Closes the dialog.Returns the inheritance container editor instance.voidMethod which should be called after the settings of an element in the inheritance containerhave been edited.openInheritanceContainerEditor(CmsGroupContainerElementPanel groupContainer, CmsContainerpageController controller, CmsContainerpageHandler handler) Opens the inheritance container editor.voidReinitializes the option bar buttons on the contained elements.voidremoveElement(CmsContainerPageElementPanel elementWidget) Either removes the locally configured element or hides the inherited element.protected voidsaveEdit()On click function for save button.protected voidsetInheritContainerData(Map<String, org.opencms.ade.containerpage.shared.CmsContainerElementData> elementsData) Sets the loaded element data.voidsetOptionBar(CmsContainerPageElementPanel elementWidget) Sets the option bar on the element widget.voidshowElement(CmsContainerPageElementPanel elementWidget) Shows a formerly hidden element and sets the visibility info to true.protected voidToggles 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, updateBackupElementsMethods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetMethods 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, unsinkEventsMethods 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 Details
-
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 Details
-
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
Method which should be called after the settings of an element in the inheritance containerhave been edited. -
reinitializeButtons
Description copied from class:A_CmsGroupEditorReinitializes the option bar buttons on the contained elements.- Specified by:
reinitializeButtonsin classA_CmsGroupEditor- See Also:
-
removeElement
Either removes the locally configured element or hides the inherited element.- Parameters:
elementWidget- the element widget
-
setOptionBar
Sets the option bar on the element widget.- Parameters:
elementWidget- the element widget
-
showElement
Shows a formerly hidden element and sets the visibility info to true.- Parameters:
elementWidget- the element widget
-
addButtons
Description copied from class:A_CmsGroupEditorAdds the buttons to the dialog.- Specified by:
addButtonsin classA_CmsGroupEditor- See Also:
-
addInputFields
Description copied from class:A_CmsGroupEditorAdds the required input fields to the dialog.- Specified by:
addInputFieldsin classA_CmsGroupEditor- See Also:
-
breakUpContainer
Breaks up the group container inserting all visible elements into the parent container instead. -
cancelEdit
Description copied from class:A_CmsGroupEditorOn click function for cancel button.- Specified by:
cancelEditin classA_CmsGroupEditor- See Also:
-
clearInstance
Description copied from class:A_CmsGroupEditorClears the static instance reference.- Specified by:
clearInstancein classA_CmsGroupEditor- See Also:
-
closeDialog
Description copied from class:A_CmsGroupEditorCloses the dialog.- Overrides:
closeDialogin classA_CmsGroupEditor- Parameters:
breakingUp-trueif the group container is to be removed- See Also:
-
saveEdit
Description copied from class:A_CmsGroupEditorOn click function for save button.- Specified by:
saveEditin classA_CmsGroupEditor- See Also:
-
setInheritContainerData
protected void setInheritContainerData(Map<String, org.opencms.ade.containerpage.shared.CmsContainerElementData> elementsData) Sets the loaded element data.- Parameters:
elementsData- the elements data
-
toggleElementVisibility
Toggles the visibility of hidden elements.
-