private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException { s.defaultReadObject(); init(); //read children for (AbstractComponent q = null;;) { final AbstractComponent child = (AbstractComponent) s.readObject(); if (child == null) { _lastRoot = q; break; //no more } if (q != null) q._next = child; else _firstRoot = child; child._prev = q; child._page = this; q = child; } fixFellows(getRoots()); }
private final void fixFellows(Collection<Component> c) { for (Component comp : c) { final String compId = comp.getId(); if (compId.length() > 0) addFellow(comp); if (!(comp instanceof IdSpace)) fixFellows(comp.getChildren()); //recursive } }