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.

PaintableIdMapper.java 904B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.server;
  5. import java.io.Serializable;
  6. import com.vaadin.terminal.Paintable;
  7. /**
  8. * Mapper between server side paintable IDs and the actual {@link Paintable}
  9. * objects.
  10. *
  11. * @since 7.0
  12. */
  13. public interface PaintableIdMapper extends Serializable {
  14. /**
  15. * Get the {@link Paintable} instance corresponding to a paintable id.
  16. *
  17. * @param paintableId
  18. * id to get
  19. * @return {@link Paintable} instance or null if none found
  20. */
  21. public Paintable getPaintable(String paintableId);
  22. /**
  23. * Get the paintable identifier corresponding to a {@link Paintable}
  24. * instance.
  25. *
  26. * @param paintable
  27. * {@link Paintable} for which to get the id
  28. * @return paintable id or null if none found
  29. */
  30. public String getPaintableId(Paintable paintable);
  31. }