Package org.opencms.ui.client
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
Modifier and TypeFieldDescriptionstatic int
Counter used to generate unique ids for RPC calls. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
extend
(com.vaadin.client.ServerConnector target) void
finishPageCopyDialog
(String callId, String response) static CmsSitemapExtensionConnector
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
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
-
Field Details
-
CALL_COUNTER
Counter used to generate unique ids for RPC calls.
-
-
Constructor Details
-
CmsSitemapExtensionConnector
public CmsSitemapExtensionConnector()Creates a new instance.
-
-
Method Details
-
get
Gets the static instance of this class.- Returns:
- the instance
-
finishPageCopyDialog
- Specified by:
finishPageCopyDialog
in interfaceorg.opencms.ui.shared.rpc.I_CmsSitemapClientRpc
- See Also:
-
I_CmsSitemapClientRpc.finishPageCopyDialog(java.lang.String, java.lang.String)
-
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 dialogcallback
- the callback to call with the result when the dialog has finished
-
openPageCopyDialog
Opens the page copy dialog.- Parameters:
id
- the structure id of the resource for which to open the dialogcallback
- the native callback to call with the result when the dialog has finished
-
openPropertyDialog
- Specified by:
openPropertyDialog
in interfaceorg.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 interfaceorg.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
- Specified by:
extend
in classcom.vaadin.client.extensions.AbstractExtensionConnector
- See Also:
-
AbstractExtensionConnector.extend(com.vaadin.client.ServerConnector)
-