Package org.opencms.ui.editors
Class CmsXmlContentEditor
- java.lang.Object
-
- org.opencms.ui.editors.A_CmsFrameEditor
-
- org.opencms.ui.editors.CmsXmlContentEditor
-
- All Implemented Interfaces:
com.vaadin.navigator.ViewChangeListener
,java.io.Serializable
,I_CmsEditor
public class CmsXmlContentEditor extends A_CmsFrameEditor
The acacia XML content editor.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.opencms.ui.editors.A_CmsFrameEditor
m_editorState
-
-
Constructor Summary
Constructors Constructor Description CmsXmlContentEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getEditorUri()
Returns the editor URI.int
getPriority()
Gets the priority.boolean
matchesType(I_CmsResourceType type, boolean plainText)
Checks whether the editor is available for the given resource type.I_CmsEditor
newInstance()
Returns a new editor instance.-
Methods inherited from class org.opencms.ui.editors.A_CmsFrameEditor
afterViewChange, beforeViewChange, initUI, matchesResource
-
-
-
-
Constructor Detail
-
CmsXmlContentEditor
public CmsXmlContentEditor()
-
-
Method Detail
-
getPriority
public int getPriority()
Description copied from interface:I_CmsEditor
Gets the priority.If multiple editors for the same resource type are available, the one with the highest priority will be picked.
- Returns:
- the priority
- See Also:
I_CmsEditor.getPriority()
-
matchesType
public boolean matchesType(I_CmsResourceType type, boolean plainText)
Description copied from interface:I_CmsEditor
Checks whether the editor is available for the given resource type.- Parameters:
type
- the resource type to editplainText
- if plain text editing is required- Returns:
true
if the editor is available for the given resource- See Also:
I_CmsEditor.matchesType(org.opencms.file.types.I_CmsResourceType, boolean)
-
newInstance
public I_CmsEditor newInstance()
Description copied from interface:I_CmsEditor
Returns a new editor instance.- Returns:
- the editor instance
- See Also:
I_CmsEditor.newInstance()
-
getEditorUri
protected java.lang.String getEditorUri()
Description copied from class:A_CmsFrameEditor
Returns the editor URI.- Specified by:
getEditorUri
in classA_CmsFrameEditor
- Returns:
- the editor URI
- See Also:
A_CmsFrameEditor.getEditorUri()
-
-