Class CmsSitemapExtensionConnector

  • All Implemented Interfaces:
    com.google.gwt.event.shared.EventHandler, com.vaadin.client.communication.StateChangeEvent.StateChangeHandler, com.vaadin.client.ServerConnector, com.vaadin.shared.communication.ClientRpc, com.vaadin.shared.Connector, java.io.Serializable, org.opencms.ui.shared.rpc.I_CmsSitemapClientRpc

    public class CmsSitemapExtensionConnector
    extends com.vaadin.client.extensions.AbstractExtensionConnector
    implements org.opencms.ui.shared.rpc.I_CmsSitemapClientRpc
    Connector class for the Vaadin extension used to embed Vaadin dialogs in the sitemap editor.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CALL_COUNTER
      Counter used to generate unique ids for RPC calls.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void extend​(com.vaadin.client.ServerConnector target)  
      void finishPageCopyDialog​(java.lang.String callId, java.lang.String response)  
      static CmsSitemapExtensionConnector get()
      Gets the static instance of this class.
      void installNativeFunctions()
      Installs the native JavaScript functions used to access Vaadin functionality from the sitemap editor's GWT module.
      void openPageCopyDialog​(java.lang.String id, com.google.gwt.core.client.JavaScriptObject callback)
      Opens the page copy dialog.
      void openPageCopyDialog​(java.lang.String structureId, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
      Opens the page copy dialog.
      void openPropertyDialog​(java.lang.String structureIdStr, java.lang.String rootIdStr)  
      void showInfoHeader​(java.lang.String title, java.lang.String description, java.lang.String path, java.lang.String locale, java.lang.String typeIcon)  
      • Methods inherited from class com.vaadin.client.extensions.AbstractExtensionConnector

        setParent
      • Methods inherited from class com.vaadin.client.ui.AbstractConnector

        addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getState, getStateType, getTag, hasEventListener, init, isEnabled, onStateChanged, onUnregister, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setTag, unregisterRpc, updateEnabledState
      • Methods inherited from class java.lang.Object

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

      • CALL_COUNTER

        public static int CALL_COUNTER
        Counter used to generate unique ids for RPC calls.
    • Method Detail

      • finishPageCopyDialog

        public void finishPageCopyDialog​(java.lang.String callId,
                                         java.lang.String response)
        Specified by:
        finishPageCopyDialog in interface org.opencms.ui.shared.rpc.I_CmsSitemapClientRpc
        See Also:
        I_CmsSitemapClientRpc.finishPageCopyDialog(java.lang.String, java.lang.String)
      • installNativeFunctions

        public void installNativeFunctions()
        Installs the native JavaScript functions used to access Vaadin functionality from the sitemap editor's GWT module.

      • openPageCopyDialog

        public void openPageCopyDialog​(java.lang.String structureId,
                                       com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
        Opens the page copy dialog.

        Parameters:
        structureId - the structure id of the resource for which to open the dialog
        callback - the callback to call with the result when the dialog has finished
      • openPageCopyDialog

        public void openPageCopyDialog​(java.lang.String id,
                                       com.google.gwt.core.client.JavaScriptObject callback)
        Opens the page copy dialog.

        Parameters:
        id - the structure id of the resource for which to open the dialog
        callback - the native callback to call with the result when the dialog has finished
      • openPropertyDialog

        public void openPropertyDialog​(java.lang.String structureIdStr,
                                       java.lang.String rootIdStr)
        Specified by:
        openPropertyDialog in interface org.opencms.ui.shared.rpc.I_CmsSitemapClientRpc
        See Also:
        I_CmsSitemapClientRpc.openPropertyDialog(java.lang.String, java.lang.String)
      • showInfoHeader

        public void showInfoHeader​(java.lang.String title,
                                   java.lang.String description,
                                   java.lang.String path,
                                   java.lang.String locale,
                                   java.lang.String typeIcon)
        Specified by:
        showInfoHeader in interface org.opencms.ui.shared.rpc.I_CmsSitemapClientRpc
        See Also:
        I_CmsSitemapClientRpc.showInfoHeader(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
      • extend

        protected void extend​(com.vaadin.client.ServerConnector target)
        Specified by:
        extend in class com.vaadin.client.extensions.AbstractExtensionConnector
        See Also:
        AbstractExtensionConnector.extend(com.vaadin.client.ServerConnector)