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 Details

  • Method Details

    • closeContentEditor

      public void 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 interface I_CmsContentEditorHandler
      Parameters:
      sitePath - the sitepath of the edited resource
      structureId - the structure id of the edited resource
      isNew - true if the resource was newly created
      hasChangedSettings - true in case container page element settings where changed during edit
      usedPublishDialog - true if the editor was closed by using the publish button
      See Also:
    • openDialog

      public void openDialog(CmsContainerPageElementPanel element, boolean inline, boolean wasNew)
      Opens the XML content editor.

      Parameters:
      element - the container element widget
      inline - true to open the in-line editor for the given element if available
      wasNew - true in case this is a newly created element not previously edited
    • openDialog

      public 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.

      Parameters:
      editableData - the data of the element to edit
      isNew - true if a new resource should be created
      dependingElementId - the id of a depending element
      mode - the element creation mode
      handlerDataForNew - the edit handler data, if we are using an edit handler to create a new element; null otherwise
    • openEditorForHistory

      public void openEditorForHistory(String historyHash)
      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