You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ClientToServerRpc.java 1.0KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.client.communication;
  5. import com.vaadin.terminal.gwt.client.ApplicationConnection;
  6. /**
  7. * Interface to be extended by all client to server RPC interfaces.
  8. *
  9. * The nested interface InitializableClientToServerRpc The
  10. * {@link #initRpc(String, ApplicationConnection)} method is created
  11. * automatically by a GWT generator and must be called on the client side before
  12. * generated implementations of the interface are used to perform RPC calls.
  13. *
  14. * @since 7.0
  15. */
  16. public interface ClientToServerRpc {
  17. /**
  18. * Initialization support for client to server RPC interfaces.
  19. *
  20. * This is in a separate interface instead of {@link ClientToServerRpc}
  21. * because otherwise also server side proxies would have to implement the
  22. * initialization method.
  23. *
  24. * @since 7.0
  25. */
  26. public interface InitializableClientToServerRpc extends ClientToServerRpc {
  27. public void initRpc(String paintableId, ApplicationConnection client);
  28. }
  29. }