Class CmsEditor

    • Nested Class Summary

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

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

      Constructors 
      Constructor Description
      CmsEditor()  
    • Method Summary

      All Methods Static 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)  
      static java.lang.String getEditLink​(CmsUUID structureId, boolean plainText, java.lang.String backLink)
      Returns the edit link for given resource structure id.
      static java.lang.String getEditState​(CmsUUID structureId, boolean plainText, java.lang.String backLink)
      Returns the edit state for the given resource structure id.
      static java.lang.String getEditStateForNew​(CmsObject cms, I_CmsResourceType resourceType, java.lang.String contextPath, java.lang.String modelFilePath, boolean plainText, java.lang.String backLink)
      Returns the edit state for the given resource structure id.
      java.util.Map<com.vaadin.event.Action,​java.lang.Runnable> getShortcutActions()
      Returns the shortcut actions.
      void initUI​(I_CmsAppUIContext context)
      Within this method the app UI should be initialized.
      void onStateChange​(java.lang.String state)
      Called on navigation events.
      void onWindowClose()
      Executed on window close.
      static void openBackLink​(java.lang.String backlink)
      Navigates to the back link target.
      • Methods inherited from class java.lang.Object

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

      • getEditLink

        public static java.lang.String getEditLink​(CmsUUID structureId,
                                                   boolean plainText,
                                                   java.lang.String backLink)
        Returns the edit link for given resource structure id.

        Parameters:
        structureId - the resource structure is
        plainText - if plain text/source editing is required
        backLink - the back link location
        Returns:
        the state
      • getEditState

        public static java.lang.String getEditState​(CmsUUID structureId,
                                                    boolean plainText,
                                                    java.lang.String backLink)
        Returns the edit state for the given resource structure id.

        Parameters:
        structureId - the resource structure id
        plainText - if plain text/source editing is required
        backLink - the back link location
        Returns:
        the state
      • getEditStateForNew

        public static java.lang.String getEditStateForNew​(CmsObject cms,
                                                          I_CmsResourceType resourceType,
                                                          java.lang.String contextPath,
                                                          java.lang.String modelFilePath,
                                                          boolean plainText,
                                                          java.lang.String backLink)
        Returns the edit state for the given resource structure id.

        Parameters:
        cms - the cms context
        resourceType - the resource type to create
        contextPath - the context path
        modelFilePath - the model file path
        plainText - if plain text/source editing is required
        backLink - the back link location
        Returns:
        the state
      • openBackLink

        public static void openBackLink​(java.lang.String backlink)
        Navigates to the back link target.

        Parameters:
        backlink - the back link
      • 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)