Ejemplo n.º 1
0
  /** Overwritten so that it can fire events to the proxies. */
  public void removeChild(String property, AXIComponent child) {
    if (getModel() != child.getModel()) return;

    super.removeChild(property, child);
    if (pcs != null) {
      // fire event so that proxy children get deleted from their parents
      pcs.firePropertyChange(PROP_CHILD_REMOVED, child, null);
      // finally, remove all listeners from the shared child
      child.removeAllListeners();
    }
    if (this instanceof AXIDocumentImpl) ((AXIDocumentImpl) this).removeFromCache(child);
  }