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.

ComponentContainerConnector.java 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.client;
  5. import java.util.Collection;
  6. import com.google.gwt.user.client.ui.HasWidgets;
  7. /**
  8. * An interface used by client-side paintables whose widget is a component
  9. * container (implements {@link HasWidgets}).
  10. */
  11. public interface ComponentContainerConnector extends ComponentConnector {
  12. /**
  13. * Update child components caption, description and error message.
  14. *
  15. * <p>
  16. * Each component is responsible for maintaining its caption, description
  17. * and error message. In most cases components doesn't want to do that and
  18. * those elements reside outside of the component. Because of this layouts
  19. * must provide service for it's childen to show those elements for them.
  20. * </p>
  21. *
  22. * @param paintable
  23. * Child component for which service is requested.
  24. * @param uidl
  25. * UIDL of the child component.
  26. */
  27. void updateCaption(ComponentConnector paintable, UIDL uidl);
  28. /**
  29. * Returns the children for this paintable.
  30. * <p>
  31. * The children for this paintable are defined as all
  32. * {@link ComponentConnector}s whose parent is this
  33. * {@link ComponentContainerConnector}.
  34. * </p>
  35. *
  36. * @return A collection of children for this paintable. An empty collection
  37. * if there are no children.
  38. */
  39. public Collection<ComponentConnector> getChildren();
  40. }