Example usage for com.vaadin.client.communication RpcProxy create

List of usage examples for com.vaadin.client.communication RpcProxy create

Introduction

In this page you can find the example usage for com.vaadin.client.communication RpcProxy create.

Prototype

public static <T extends ServerRpc> T create(Class<T> rpcInterface, ServerConnector connector) 

Source Link

Usage

From source file:de.bonprix.gridstacklayout.client.GridStackLayoutConnector.java

License:Open Source License

/**
 * Constructor./*from ww w.j  a  va  2  s  .c o  m*/
 */
public GridStackLayoutConnector() {
    // CLIENT -> SERVER 
    this.clientToServerRpc = RpcProxy.create(GridStackLayoutServerRpc.class, this);

    // SERVER -> CLIENT
    this.serverToClientRpc = new GridStackLayoutClientRpc() {
        @Override
        public void removeNativeWidget(final String id) {
            getWidget().removeWidget(id);
        }
    };
    registerRpc(GridStackLayoutClientRpc.class, this.serverToClientRpc);
}

From source file:fi.jasoft.draganddrop.client.configurations.AbstractDragAndDropConfiguration.java

License:Apache License

protected <C extends ServerRpc> C getRpcProxy(Class<C> rpcInterface) {
    assert connector != null;
    String name = rpcInterface.getName();
    if (!rpcProxyMap.containsKey(name)) {
        rpcProxyMap.put(name, RpcProxy.create(rpcInterface, connector));
    }/*from   w  w w.j a va 2 s .c  o  m*/
    return (C) rpcProxyMap.get(name);
}

From source file:org.vaadin.addons.portallayout.gwt.client.portal.connection.StackPortalLayoutConnector.java

License:Apache License

@Override
protected StackPortalRpc initRpc() {
    return RpcProxy.create(StackPortalRpc.class, this);
}

From source file:org.vaadin.tltv.vprocjs.gwt.client.ui.ProcessingConnector.java

License:Apache License

public ProcessingConnector() {
    rpc = RpcProxy.create(ProcessingServerRpc.class, this);
}