Package org.opencms.ui.editors
Class A_CmsFrameEditor
java.lang.Object
org.opencms.ui.editors.A_CmsFrameEditor
- All Implemented Interfaces:
com.vaadin.navigator.ViewChangeListener
,Serializable
,I_CmsEditor
- Direct Known Subclasses:
CmsAcaciaEditor
,CmsXmlContentEditor
,CmsXmlPageEditor
public abstract class A_CmsFrameEditor
extends Object
implements I_CmsEditor, com.vaadin.navigator.ViewChangeListener
Class to extended by frame based editors.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.navigator.ViewChangeListener
com.vaadin.navigator.ViewChangeListener.ViewChangeEvent
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterViewChange
(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) boolean
beforeViewChange
(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) protected abstract String
Returns the editor URI.void
initUI
(I_CmsAppUIContext context, CmsResource resource, String backLink, Map<String, String> params) Within this method the editor UI should be initialized.boolean
matchesResource
(CmsObject cms, CmsResource resource, boolean plainText) Checks whether the editor is available for the given resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.ui.editors.I_CmsEditor
getPriority, matchesType, newInstance
-
Field Details
-
m_editorState
The editor state.
-
-
Constructor Details
-
A_CmsFrameEditor
public A_CmsFrameEditor()
-
-
Method Details
-
initUI
public void initUI(I_CmsAppUIContext context, CmsResource resource, String backLink, Map<String, String> params) Description copied from interface:I_CmsEditor
Within this method the editor UI should be initialized.Use the context to add the app's components to the UI.
- Specified by:
initUI
in interfaceI_CmsEditor
- Parameters:
context
- the UI contextresource
- the resource to editbackLink
- the link to return to when closing the editorparams
- optional parameters- 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
- 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:
-
getEditorUri
Returns the editor URI.- Returns:
- the editor URI