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.

VaadinSerializer.java 919B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.client.communication;
  5. import com.google.gwt.json.client.JSONObject;
  6. import com.vaadin.terminal.gwt.client.VPaintableMap;
  7. /**
  8. * Serializer that can deserialize custom objects received from the server.
  9. *
  10. * Each serializer can handle objects of a single type - see
  11. * {@link SerializerMap}.
  12. *
  13. * @since 7.0
  14. */
  15. public interface VaadinSerializer {
  16. /**
  17. * Creates and deserializes an object received from the server.
  18. *
  19. * @param jsonValue
  20. * JSON map from property name to property value
  21. * @param idMapper
  22. * mapper from paintable id to paintable, used to decode
  23. * references to paintables
  24. * @return deserialized object
  25. */
  26. // TODO Object -> something
  27. Object deserialize(JSONObject jsonValue, VPaintableMap idMapper);
  28. }