Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ComponentContainerConnector.java 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.client;
  5. import java.util.List;
  6. import com.google.gwt.user.client.ui.HasWidgets;
  7. /**
  8. * An interface used by client-side connectors 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 connector
  23. * Child component for which service is requested.
  24. * @param uidl
  25. * UIDL of the child component.
  26. */
  27. void updateCaption(ComponentConnector connector, UIDL uidl);
  28. /**
  29. * Returns the children for this connector.
  30. * <p>
  31. * The children for this connector 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 connector. An empty collection
  37. * if there are no children. Never returns null.
  38. */
  39. public List<ComponentConnector> getChildren();
  40. /**
  41. * Sets the children for this connector. This method should only be called
  42. * by the framework to ensure that the connector hierarchy on the client
  43. * side and the server side are in sync.
  44. * <p>
  45. * Note that calling this method does not call
  46. * {@link #connectorHierarchyChanged(ConnectorHierarchyChangedEvent)}. The
  47. * event method is called only when the hierarchy has been updated for all
  48. * connectors.
  49. *
  50. * @param children
  51. * The new child connectors
  52. */
  53. public void setChildren(List<ComponentConnector> children);
  54. /**
  55. * Called when the child connector hierarchy of this connector has changed.
  56. * When this method is called the full hierarchy has been updated so
  57. * {@link #getChildren()} returns the new child connectors of this
  58. * connector.
  59. *
  60. * @param event
  61. * An event containing additional information about how the
  62. * hierarchy has changed.
  63. */
  64. public void connectorHierarchyChanged(ConnectorHierarchyChangedEvent event);
  65. }