parentChanged method

  1. @protected
void parentChanged(
  1. ContainerComponent from,
  2. ContainerComponent to
)
@protected, inherited

Implementation

@protected
void parentChanged(ContainerComponent from, ContainerComponent to) {
  if (from != null) {
    from.children.remove(this);
    from.childRemoved(this);
  }
  if (to != null) {
    to.children.add(this);
    to.childAdded(this);
  }
  markRebuildDependencies();
}