/** Adds its descendants to the ID space when parent or page is changed, * excluding comp. */ private static void addToIdSpacesDown(Component comp) { addToIdSpacesDown(comp, getSpaceOwnerOfParent(comp)); }
private void cloneSpaceInfoFrom(SpaceInfo from) { //rebuild ID space by binding itself and all children if (!isAutoId(_id)) this.bindToIdSpace(this); for (AbstractComponent p = (AbstractComponent) getFirstChild(); p != null; p = p._next) addToIdSpacesDown(p, (IdSpace) this); }
private static void addToIdSpacesDown(Component comp, IdSpace owner) { if (!(comp instanceof NonFellow) && !isAutoId(comp.getId())) addFellow(comp, owner); if (!(comp instanceof IdSpace)) for (AbstractComponent ac = (AbstractComponent) comp.getFirstChild(); ac != null; ac = ac._next) addToIdSpacesDown(ac, owner); //recursive ((AbstractComponent) comp).notifyIdSpaceChanged(owner); }
bindToIdSpace(this); for (AbstractComponent ac = (AbstractComponent) getFirstChild(); ac != null; ac = ac._next) addToIdSpacesDown(ac, (IdSpace) this);
_auxinf.attrs.notifyParentChanged(_parent != null ? _parent : (Scope) _page); if (idSpaceChanged) addToIdSpacesDown(this); //called after setPage