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
,Serializable
,I_CmsEditor
The acacia XML content editor.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.navigator.ViewChangeListener
com.vaadin.navigator.ViewChangeListener.ViewChangeEvent
-
Field Summary
Fields inherited from class org.opencms.ui.editors.A_CmsFrameEditor
m_editorState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the editor URI.int
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.Returns a new editor instance.Methods inherited from class org.opencms.ui.editors.A_CmsFrameEditor
afterViewChange, beforeViewChange, initUI
-
Constructor Details
-
CmsAcaciaEditor
public CmsAcaciaEditor()
-
-
Method Details
-
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:
-
matchesResource
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:
-
matchesType
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:
-
newInstance
Description copied from interface:I_CmsEditor
Returns a new editor instance.- Returns:
- the editor instance
- See Also:
-
getEditorUri
Description copied from class:A_CmsFrameEditor
Returns the editor URI.- Specified by:
getEditorUri
in classA_CmsFrameEditor
- Returns:
- the editor URI
- See Also:
-