Class CmsSitemapExtensionConnector

java.lang.Object
com.vaadin.client.ui.AbstractConnector
com.vaadin.client.extensions.AbstractExtensionConnector
org.opencms.ui.client.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, 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:
  • Field Summary

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

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    extend(com.vaadin.client.ServerConnector target)
     
    void
    finishPageCopyDialog(String callId, String response)
     
    get()
    Gets the static instance of this class.
    void
    Installs the native JavaScript functions used to access Vaadin functionality from the sitemap editor's GWT module.
    void
    openPageCopyDialog(String id, com.google.gwt.core.client.JavaScriptObject callback)
    Opens the page copy dialog.
    void
    openPageCopyDialog(String structureId, com.google.gwt.user.client.rpc.AsyncCallback<String> callback)
    Opens the page copy dialog.
    void
    openPropertyDialog(String structureIdStr, String rootIdStr)
     
    void
    showInfoHeader(String title, String description, String path, String locale, 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 Details

    • CALL_COUNTER

      public static int CALL_COUNTER
      Counter used to generate unique ids for RPC calls.
  • Constructor Details

  • Method Details

    • get

      Gets the static instance of this class.

      Returns:
      the instance
    • finishPageCopyDialog

      public void finishPageCopyDialog(String callId, 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(String structureId, com.google.gwt.user.client.rpc.AsyncCallback<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(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(String structureIdStr, 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(String title, String description, String path, String locale, 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)