<!-- Generate client side proxies for client to server RPC interfaces -->
<generate-with
class="com.vaadin.terminal.gwt.widgetsetutils.RpcProxyGenerator">
- <when-type-assignable class="com.vaadin.terminal.gwt.client.communication.ClientToServerRpc" />
+ <when-type-assignable class="com.vaadin.terminal.gwt.client.communication.ServerRpc" />
</generate-with> -->
<!-- Fall through to this rule for everything but IE -->
+++ /dev/null
-/*
-@VaadinApache2LicenseForJavaFiles@
- */
-
-package com.vaadin.terminal.gwt.client.communication;
-
-import java.io.Serializable;
-
-import com.vaadin.terminal.gwt.client.ApplicationConnection;
-
-/**
- * Interface to be extended by all client to server RPC interfaces.
- *
- * The nested interface InitializableClientToServerRpc The
- * {@link #initRpc(String, ApplicationConnection)} method is created
- * automatically by a GWT generator and must be called on the client side before
- * generated implementations of the interface are used to perform RPC calls.
- *
- * @since 7.0
- */
-public interface ClientToServerRpc extends Serializable {
- /**
- * Initialization support for client to server RPC interfaces.
- *
- * This is in a separate interface instead of {@link ClientToServerRpc}
- * because otherwise also server side proxies would have to implement the
- * initialization method.
- *
- * @since 7.0
- */
- public interface InitializableClientToServerRpc extends ClientToServerRpc {
- public void initRpc(String connectorId, ApplicationConnection client);
- }
-}
--- /dev/null
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+
+package com.vaadin.terminal.gwt.client.communication;
+
+import java.io.Serializable;
+
+import com.vaadin.terminal.gwt.client.ApplicationConnection;
+
+/**
+ * Interface to be extended by all client to server RPC interfaces.
+ *
+ * The nested interface InitializableClientToServerRpc The
+ * {@link #initRpc(String, ApplicationConnection)} method is created
+ * automatically by a GWT generator and must be called on the client side before
+ * generated implementations of the interface are used to perform RPC calls.
+ *
+ * @since 7.0
+ */
+public interface ServerRpc extends Serializable {
+ /**
+ * Initialization support for client to server RPC interfaces.
+ *
+ * This is in a separate interface instead of {@link ServerRpc}
+ * because otherwise also server side proxies would have to implement the
+ * initialization method.
+ *
+ * @since 7.0
+ */
+ public interface InitializableClientToServerRpc extends ServerRpc {
+ public void initRpc(String connectorId, ApplicationConnection client);
+ }
+}
import com.vaadin.terminal.gwt.client.TooltipInfo;
import com.vaadin.terminal.gwt.client.UIDL;
import com.vaadin.terminal.gwt.client.VConsole;
-import com.vaadin.terminal.gwt.client.communication.ClientToServerRpc;
-import com.vaadin.terminal.gwt.client.communication.ClientToServerRpc.InitializableClientToServerRpc;
+import com.vaadin.terminal.gwt.client.communication.ServerRpc;
+import com.vaadin.terminal.gwt.client.communication.ServerRpc.InitializableClientToServerRpc;
import com.vaadin.terminal.gwt.client.communication.SharedState;
public abstract class AbstractComponentConnector extends AbstractConnector
* The RPC instance to initialize. Must have been created using
* GWT.create().
*/
- protected <T extends ClientToServerRpc> T initRPC(T clientToServerRpc) {
+ protected <T extends ServerRpc> T initRPC(T clientToServerRpc) {
((InitializableClientToServerRpc) clientToServerRpc).initRpc(getId(),
getConnection());
return clientToServerRpc;
import com.vaadin.terminal.gwt.client.ComponentState;
import com.vaadin.terminal.gwt.client.EventHelper;
import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.communication.ClientToServerRpc;
+import com.vaadin.terminal.gwt.client.communication.ServerRpc;
public class ButtonConnector extends AbstractComponentConnector {
*
* @since 7.0
*/
- public interface ButtonClientToServerRpc extends ClientToServerRpc {
+ public interface ButtonClientToServerRpc extends ServerRpc {
/**
* Button click event.
*
import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;
import com.google.gwt.user.rebind.SourceWriter;
import com.vaadin.terminal.gwt.client.ApplicationConnection;
-import com.vaadin.terminal.gwt.client.communication.ClientToServerRpc;
-import com.vaadin.terminal.gwt.client.communication.ClientToServerRpc.InitializableClientToServerRpc;
+import com.vaadin.terminal.gwt.client.communication.ServerRpc;
+import com.vaadin.terminal.gwt.client.communication.ServerRpc.InitializableClientToServerRpc;
import com.vaadin.terminal.gwt.client.communication.MethodInvocation;
/**
* GWT generator that creates client side proxy classes for making RPC calls
* from the client to the server.
*
- * GWT.create() calls for interfaces extending {@link ClientToServerRpc} are
+ * GWT.create() calls for interfaces extending {@link ServerRpc} are
* affected, and a proxy implementation is created. Note that the init(...)
* method of the proxy must be called before the proxy is used.
*