Class CmsMessageBundleEditor
java.lang.Object
org.opencms.ui.editors.messagebundle.CmsMessageBundleEditor
- All Implemented Interfaces:
com.vaadin.navigator.ViewChangeListener
,Serializable
,I_CmsHasShortcutActions
,I_CmsWindowCloseListener
,I_CmsEditor
public class CmsMessageBundleEditor
extends Object
implements I_CmsEditor, I_CmsWindowCloseListener, com.vaadin.navigator.ViewChangeListener, I_CmsHasShortcutActions
Controller for the VAADIN UI of the Message Bundle Editor.
- 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) int
Gets the priority.Returns the shortcut actions.boolean
handleAddKey
(String newKey) void
handleEntryChange
(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EntryChangeEvent event) boolean
handleItemDeletion
(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.ItemDeletionEvent e) void
handleLanguageChange
(Locale locale) void
handleModeChange
(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EditMode mode) 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.boolean
matchesType
(I_CmsResourceType type, boolean plainText) Checks whether the editor is available for the given resource type.Returns a new editor instance.void
Executed on window close.
-
Field Details
-
PARAM_KEYFILTER
Name of the keyfilter parameter.- See Also:
-
-
Constructor Details
-
CmsMessageBundleEditor
public CmsMessageBundleEditor()Default constructor.
-
-
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.
- Specified by:
getPriority
in interfaceI_CmsEditor
- Returns:
- the priority
- See Also:
-
getShortcutActions
Description copied from interface:I_CmsHasShortcutActions
Returns the shortcut actions.- Specified by:
getShortcutActions
in interfaceI_CmsHasShortcutActions
- Returns:
- the shortcut actions
- See Also:
-
handleAddKey
- See Also:
-
CmsMessageBundleEditorTypes.I_OptionListener.handleAddKey(java.lang.String)
-
handleEntryChange
public void handleEntryChange(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EntryChangeEvent event) - See Also:
-
CmsMessageBundleEditorTypes.I_EntryChangeListener.handleEntryChange(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EntryChangeEvent)
-
handleItemDeletion
public boolean handleItemDeletion(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.ItemDeletionEvent e) - See Also:
-
CmsMessageBundleEditorTypes.I_ItemDeletionListener.handleItemDeletion(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.ItemDeletionEvent)
-
handleLanguageChange
- See Also:
-
CmsMessageBundleEditorTypes.I_OptionListener.handleLanguageChange(java.util.Locale)
-
handleModeChange
public void handleModeChange(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EditMode mode) - See Also:
-
CmsMessageBundleEditorTypes.I_OptionListener.handleModeChange(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EditMode)
-
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:
-
matchesType
Description copied from interface:I_CmsEditor
Checks whether the editor is available for the given resource type.- Specified by:
matchesType
in interfaceI_CmsEditor
- 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:
-
org.opencms.ui.editors.I_CmsEditor#matchesResource(org.opencms.file.CmsResource, boolean)
-
newInstance
Description copied from interface:I_CmsEditor
Returns a new editor instance.- Specified by:
newInstance
in interfaceI_CmsEditor
- Returns:
- the editor instance
- See Also:
-
onWindowClose
Description copied from interface:I_CmsWindowCloseListener
Executed on window close.- Specified by:
onWindowClose
in interfaceI_CmsWindowCloseListener
- See Also: