Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. @ITMillApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.client;
  5. import com.google.gwt.core.client.EntryPoint;
  6. import com.google.gwt.user.client.ui.Widget;
  7. public interface WidgetSet extends EntryPoint {
  8. /**
  9. * Create an uninitialized component that best matches given UIDL. The
  10. * component must be a {@link Widget} that implements {@link Paintable}.
  11. *
  12. * @param uidl
  13. * UIDL to be painted with returned component.
  14. * @param client
  15. * the application connection that whishes to instantiate widget
  16. *
  17. * @return New uninitialized and unregistered component that can paint given
  18. * UIDL.
  19. */
  20. public Paintable createWidget(UIDL uidl, ApplicationConfiguration conf);
  21. /**
  22. * Test if the given component implementation conforms to UIDL.
  23. *
  24. * @param currentWidget
  25. * Current implementation of the component
  26. * @param uidl
  27. * UIDL to test against
  28. * @return true iff createWidget would return a new component of the same
  29. * class than currentWidget
  30. */
  31. public boolean isCorrectImplementation(Widget currentWidget, UIDL uidl,
  32. ApplicationConfiguration conf);
  33. /**
  34. * Due its nature, GWT does not support dynamic classloading. To bypass this
  35. * limitation, widgetset must have function that returns Class by its fully
  36. * qualified name.
  37. *
  38. * @param fullyQualifiedName
  39. * @param applicationConfiguration
  40. * @return
  41. */
  42. public Class<? extends Paintable> getImplementationByClassName(
  43. String fullyQualifiedName,
  44. ApplicationConfiguration applicationConfiguration);
  45. }