Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Connector.java 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright 2000-2014 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.shared;
  17. import java.io.Serializable;
  18. /**
  19. * Interface implemented by all classes that are capable of communicating with
  20. * the server or the client side.
  21. * <p>
  22. * A connector consists of a shared state (server sets the state and
  23. * automatically communicates changes to the client) and the possibility to do
  24. * RPC calls either from the server to the client or from the client to the
  25. * server.
  26. * </p>
  27. * <p>
  28. * No classes should implement this interface directly, client side classes
  29. * wanting to communicate with server side should implement
  30. * {@link com.vaadin.client.ServerConnector} and server side classes should
  31. * implement {@link com.vaadin.server.ClientConnector}.
  32. * </p>
  33. *
  34. * @author Vaadin Ltd
  35. * @since 7.0.0
  36. */
  37. public interface Connector extends Serializable {
  38. /**
  39. * Returns the id for this connector. This is set by the framework and does
  40. * not change during the lifetime of a connector.
  41. *
  42. * @return The id for the connector.
  43. */
  44. public String getConnectorId();
  45. /**
  46. * Gets the parent connector of this connector, or <code>null</code> if the
  47. * connector is not attached to any parent.
  48. *
  49. * @return the parent connector, or <code>null</code> if there is no parent.
  50. */
  51. public Connector getParent();
  52. }