public class CmsContentEditorHandler extends java.lang.Object implements I_CmsContentEditorHandler
构造器和说明 |
---|
CmsContentEditorHandler(CmsContainerpageHandler handler)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
closeContentEditor()
Closes the content editor.
|
protected java.lang.String |
getCurrentElementId()
Returns the currently edited element's id.
|
void |
onClose(java.lang.String sitePath,
boolean isNew)
Executed by the XML content editor dialog on close.
|
void |
openDialog(CmsContainerPageElementPanel element,
boolean inline)
Opens the XML content editor.
|
void |
openDialog(I_CmsEditableData editableData,
boolean isNew,
java.lang.String dependingElementId)
Opens the XML content editor.
|
void |
openEditorForHistory(java.lang.String historyHash)
Opens the content editor according to the history hash.
|
public CmsContentEditorHandler(CmsContainerpageHandler handler)
handler
- the container-page handlerpublic void closeContentEditor()
public void onClose(java.lang.String sitePath, boolean isNew)
I_CmsContentEditorHandler
onClose
在接口中 I_CmsContentEditorHandler
sitePath
- the sitepath of the edited resourceisNew
- true
if the resource was newly createdI_CmsContentEditorHandler.onClose(java.lang.String, boolean)
public void openDialog(CmsContainerPageElementPanel element, boolean inline)
element
- the container element widgetinline
- true
to open the in-line editor for the given element if availablepublic void openDialog(I_CmsEditableData editableData, boolean isNew, java.lang.String dependingElementId)
editableData
- the data of the element to editisNew
- true
if a new resource should be createddependingElementId
- the id of a depending elementpublic void openEditorForHistory(java.lang.String historyHash)
historyHash
- the history hashprotected java.lang.String getCurrentElementId()