Class CmsMessageBundleEditor

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.vaadin.navigator.ViewChangeListener

        com.vaadin.navigator.ViewChangeListener.ViewChangeEvent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterViewChange​(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)  
      boolean beforeViewChange​(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)  
      int getPriority()
      Gets the priority.
      java.util.Map<com.vaadin.event.Action,​java.lang.Runnable> getShortcutActions()
      Returns the shortcut actions.
      boolean handleAddKey​(java.lang.String newKey)  
      void handleEntryChange​(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EntryChangeEvent event)  
      boolean handleItemDeletion​(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.ItemDeletionEvent e)  
      void handleLanguageChange​(java.util.Locale locale)  
      void handleModeChange​(org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.EditMode mode)  
      void initUI​(I_CmsAppUIContext context, CmsResource resource, java.lang.String backLink, java.util.Map<java.lang.String,​java.lang.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.
      I_CmsEditor newInstance()
      Returns a new editor instance.
      void onWindowClose()
      Executed on window close.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • afterViewChange

        public void afterViewChange​(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
        Specified by:
        afterViewChange in interface com.vaadin.navigator.ViewChangeListener
        See Also:
        ViewChangeListener.afterViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent)
      • beforeViewChange

        public boolean beforeViewChange​(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
        Specified by:
        beforeViewChange in interface com.vaadin.navigator.ViewChangeListener
        See Also:
        ViewChangeListener.beforeViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent)
      • handleAddKey

        public boolean handleAddKey​(java.lang.String newKey)
        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

        public void handleLanguageChange​(java.util.Locale locale)
        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)
      • 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.

        Specified by:
        matchesType in interface I_CmsEditor
        Parameters:
        type - the resource type to edit
        plainText - 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)