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
FieldsModifier and TypeFieldDescriptionstatic intCounter used to generate unique ids for RPC calls. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidextend(com.vaadin.client.ServerConnector target) voidfinishPageCopyDialog(String callId, String response) static CmsSitemapExtensionConnectorget()Gets the static instance of this class.voidInstalls the native JavaScript functions used to access Vaadin functionality from the sitemap editor's GWT module.voidopenPageCopyDialog(String id, com.google.gwt.core.client.JavaScriptObject callback) Opens the page copy dialog.voidopenPageCopyDialog(String structureId, com.google.gwt.user.client.rpc.AsyncCallback<String> callback) Opens the page copy dialog.voidopenPropertyDialog(String structureIdStr, String rootIdStr) voidMethods inherited from class com.vaadin.client.extensions.AbstractExtensionConnector
setParentMethods 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:
finishPageCopyDialogin interfaceorg.opencms.ui.shared.rpc.I_CmsSitemapClientRpc- See Also:
-
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:
openPropertyDialogin interfaceorg.opencms.ui.shared.rpc.I_CmsSitemapClientRpc- See Also:
-
showInfoHeader
public void showInfoHeader(String title, String description, String path, String locale, String typeIcon) - Specified by:
showInfoHeaderin interfaceorg.opencms.ui.shared.rpc.I_CmsSitemapClientRpc- See Also:
-
extend
- Specified by:
extendin classcom.vaadin.client.extensions.AbstractExtensionConnector- See Also:
-