Package org.opencms.ui.editors
Class CmsAcaciaEditor
- java.lang.Object
-
- org.opencms.ui.editors.A_CmsFrameEditor
-
- org.opencms.ui.editors.CmsAcaciaEditor
-
- All Implemented Interfaces:
com.vaadin.navigator.ViewChangeListener
,java.io.Serializable
,I_CmsEditor
public class CmsAcaciaEditor 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 CmsAcaciaEditor()
-
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
matchesResource(CmsObject cms, CmsResource resource, boolean plainText)
Checks whether the editor is available for the given resource.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
-
-
-
-
Constructor Detail
-
CmsAcaciaEditor
public CmsAcaciaEditor()
-
-
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()
-
matchesResource
public boolean matchesResource(CmsObject cms, CmsResource resource, boolean plainText)
Description copied from interface:I_CmsEditor
Checks whether the editor is available for the given resource.- Specified by:
matchesResource
in interfaceI_CmsEditor
- Overrides:
matchesResource
in classA_CmsFrameEditor
- Parameters:
cms
- the CMS contextresource
- the resource to editplainText
- if plain text editing is required- Returns:
true
if the editor is available for the given resource- See Also:
A_CmsFrameEditor.matchesResource(org.opencms.file.CmsObject, org.opencms.file.CmsResource, boolean)
-
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()
-
-