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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the content editor.protected StringReturns the currently edited element's id.voidonClose(String sitePath, org.opencms.util.CmsUUID structureId, boolean isNew, boolean hasChangedSettings, boolean usedPublishDialog) Executed by the XML content editor dialog on close.voidopenDialog(CmsContainerPageElementPanel element, boolean inline, boolean wasNew) Opens the XML content editor.voidopenDialog(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.voidopenEditorForHistory(String historyHash) Opens the content editor according to the history hash.
-
Field Details
-
scrollPosition
Saved scroll position.
-
-
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_CmsContentEditorHandlerExecuted by the XML content editor dialog on close.- Specified by:
onClosein interfaceI_CmsContentEditorHandler- Parameters:
sitePath- the sitepath of the edited resourcestructureId- the structure id of the edited resourceisNew-trueif the resource was newly createdhasChangedSettings-truein 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-trueto open the in-line editor for the given element if availablewasNew-truein 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
-