Class CmsContentEditorHandler
java.lang.Object
org.opencms.ade.containerpage.client.CmsContentEditorHandler
- All Implemented Interfaces:
I_CmsContentEditorHandler
The container-page editor implementation of the XML content editor handler.
- Since:
- 8.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Closes the content editor.protected String
Returns the currently edited element's id.void
onClose
(String sitePath, org.opencms.util.CmsUUID structureId, boolean isNew, boolean hasChangedSettings, boolean usedPublishDialog) Executed by the XML content editor dialog on close.void
openDialog
(CmsContainerPageElementPanel element, boolean inline, boolean wasNew) Opens the XML content editor.void
openDialog
(I_CmsEditableData editableData, boolean isNew, String dependingElementId, String mode, org.opencms.ade.contenteditor.shared.CmsEditHandlerData handlerDataForNew) Opens the XML content editor, checking for if an edit handler is configured first.void
openEditorForHistory
(String historyHash) Opens the content editor according to the history hash.
-
Constructor Details
-
CmsContentEditorHandler
Constructor.- Parameters:
handler
- the container-page handler
-
-
Method Details
-
closeContentEditor
Closes the content editor. -
onClose
public void onClose(String sitePath, org.opencms.util.CmsUUID structureId, boolean isNew, boolean hasChangedSettings, boolean usedPublishDialog) Description copied from interface:I_CmsContentEditorHandler
Executed by the XML content editor dialog on close.- Specified by:
onClose
in interfaceI_CmsContentEditorHandler
- Parameters:
sitePath
- the sitepath of the edited resourcestructureId
- the structure id of the edited resourceisNew
-true
if the resource was newly createdhasChangedSettings
-true
in case container page element settings where changed during editusedPublishDialog
- true if the editor was closed by using the publish button- See Also:
-
openDialog
Opens the XML content editor.- Parameters:
element
- the container element widgetinline
-true
to open the in-line editor for the given element if availablewasNew
-true
in case this is a newly created element not previously edited
-
openEditorForHistory
Opens the content editor according to the history hash.- Parameters:
historyHash
- the history hash
-
getCurrentElementId
Returns the currently edited element's id.- Returns:
- the currently edited element's id
-