summaryrefslogtreecommitdiffstats
path: root/documentation/gwt/gwt-rpc.asciidoc
diff options
context:
space:
mode:
authorAnastasia Smirnova <anasmi@utu.fi>2018-12-17 14:01:33 +0200
committerSun Zhe <31067185+ZheSun88@users.noreply.github.com>2018-12-17 14:01:33 +0200
commitfebddda0578c8185e0c4c0f613f250490e0503a2 (patch)
tree333aefdf833d365f35df1cd7300c3739b86f81a5 /documentation/gwt/gwt-rpc.asciidoc
parentccb1c45a6a85e1fe6d0497d8b9bafc130a01ca92 (diff)
downloadvaadin-framework-febddda0578c8185e0c4c0f613f250490e0503a2.tar.gz
vaadin-framework-febddda0578c8185e0c4c0f613f250490e0503a2.zip
Add missing [source, java] to the java code blocks in documentation (#11381)
* Update clientsideapp-entrypoint.asciidoc Adding missing ```[source, java]```
Diffstat (limited to 'documentation/gwt/gwt-rpc.asciidoc')
-rw-r--r--documentation/gwt/gwt-rpc.asciidoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/gwt/gwt-rpc.asciidoc b/documentation/gwt/gwt-rpc.asciidoc
index eac486fc3e..a4ba4b9d13 100644
--- a/documentation/gwt/gwt-rpc.asciidoc
+++ b/documentation/gwt/gwt-rpc.asciidoc
@@ -28,7 +28,7 @@ interface simply defines any methods that can be called through the interface.
For example:
-
+[source,java]
----
public interface MyComponentServerRpc extends ServerRpc {
public void clicked(String buttonName);
@@ -54,7 +54,7 @@ Before making a call, you need to instantiate the server RPC object with
[methodname]#RpcProxy.create()#. This is usually done transparently by using [methodname]#getRpcProxy()#. After that, you can make calls through the
server RPC interface that you defined, for example as follows:
-
+[source,java]
----
@Connect(MyComponent.class)
public class MyComponentConnector
@@ -87,7 +87,7 @@ RPC calls are handled in a server-side implementation of the server RPC
interface. The call and its parameters are serialized and passed to the server
in an RPC request transparently.
-
+[source,java]
----
public class MyComponent extends AbstractComponent {
private MyComponentServerRpc rpc =