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
,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.
-
Constructor Summary
Constructors Constructor Description CmsSitemapExtensionConnector()
Creates a new instance.
-
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.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 Detail
-
CALL_COUNTER
public static int CALL_COUNTER
Counter used to generate unique ids for RPC calls.
-
-
Constructor Detail
-
CmsSitemapExtensionConnector
public CmsSitemapExtensionConnector()
Creates a new instance.
-
-
Method Detail
-
get
public static CmsSitemapExtensionConnector get()
Gets the static instance of this class.- Returns:
- the instance
-
finishPageCopyDialog
public void finishPageCopyDialog(java.lang.String callId, java.lang.String response)
- Specified by:
finishPageCopyDialog
in interfaceorg.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 dialogcallback
- 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 dialogcallback
- 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 interfaceorg.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 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
protected void extend(com.vaadin.client.ServerConnector target)
- Specified by:
extend
in classcom.vaadin.client.extensions.AbstractExtensionConnector
- See Also:
AbstractExtensionConnector.extend(com.vaadin.client.ServerConnector)
-
-