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.

ConnectorHierarchyChangedEvent.java 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package com.vaadin.terminal.gwt.client;
  2. import java.util.List;
  3. /**
  4. * Event for containing data related to a change in the {@link Connector}
  5. * hierarchy. A {@link ConnectorHierarchyChangedEvent} is fired when an update
  6. * from the server has been fully processed and all hierarchy updates have been
  7. * completed.
  8. *
  9. * @author Vaadin Ltd
  10. * @version @VERSION@
  11. * @since 7.0.0
  12. *
  13. */
  14. public class ConnectorHierarchyChangedEvent {
  15. List<ComponentConnector> oldChildren;
  16. private ComponentContainerConnector parent;
  17. public ConnectorHierarchyChangedEvent() {
  18. }
  19. /**
  20. * Returns a collection of the old children for the connector. This was the
  21. * state before the update was received from the server.
  22. *
  23. * @return A collection of old child connectors. Never returns null.
  24. */
  25. public List<ComponentConnector> getOldChildren() {
  26. return oldChildren;
  27. }
  28. /**
  29. * Sets the collection of the old children for the connector.
  30. *
  31. * @param oldChildren
  32. * The old child connectors. Must not be null.
  33. */
  34. public void setOldChildren(List<ComponentConnector> oldChildren) {
  35. this.oldChildren = oldChildren;
  36. }
  37. /**
  38. * Returns the {@link ComponentContainerConnector} for which this event
  39. * occurred.
  40. *
  41. * @return The {@link ComponentContainerConnector} whose child collection
  42. * has changed. Never returns null.
  43. */
  44. public ComponentContainerConnector getParent() {
  45. return parent;
  46. }
  47. /**
  48. * Sets the {@link ComponentContainerConnector} for which this event
  49. * occurred.
  50. *
  51. * @param The
  52. * {@link ComponentContainerConnector} whose child collection has
  53. * changed.
  54. */
  55. public void setParent(ComponentContainerConnector parent) {
  56. this.parent = parent;
  57. }
  58. }