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

    super.insertAtIndex(property, child, index);
    if (pcs != null) pcs.firePropertyChange(PROP_CHILD_ADDED, null, child);

    if (this instanceof AXIDocumentImpl) ((AXIDocumentImpl) this).addToCache(child);
  }
Esempio n. 2
0
  /** Overwritten so that it can fire events to the proxies. */
  protected void appendChild(String property, AXIComponent child) {
    if (getModel() != child.getModel()) return;

    super.appendChild(property, child);
    if (pcs != null) pcs.firePropertyChange(PROP_CHILD_ADDED, null, child);

    if (this instanceof AXIDocumentImpl) ((AXIDocumentImpl) this).addToCache(child);
  }
Esempio n. 3
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);
  }