public boolean hasMoreComponents() { return pos < size(); }
/** * Returns a flattened array of all children of this container. Note that this * method will trigger the creation of a cached internal array on its first * use, which cannot be recreated. It is essential therefore that it only be * used once ALL modifications to the component tree have concluded (i.e. once * rendering starts). */ public UIComponent[] flatChildren() { if (flatchildren == null) { ComponentList children = flattenChildren(); flatchildren = (UIComponent[]) children.toArray(new UIComponent[children .size()]); } return flatchildren; }
private void registerContainer(UIForm toprocess, UIContainer toregister) { ComponentList children = toregister.flattenChildren(); for (int i = 0; i < children.size(); ++i) { UIComponent child = children.componentAt(i); registerComponent(toprocess, child); } } }
for (int compind = 0; compind < worklist.size(); ++compind) { UIComponent child = worklist.componentAt(compind); view.registerComponent(child); for (int compind = 0; compind < worklist.size(); ++compind) { UIComponent child = worklist.componentAt(compind); for (int procind = 0; procind < processors.size(); ++procind) { for (int compind = 0; compind < worklist.size(); ++compind) { UIComponent thischild = worklist.componentAt(compind); if (thischild instanceof FixableComponent) {
private void cloneChildren(UIContainer target, UIContainer source, RemapState state) { ComponentList children = source.flattenChildren(); for (int i = 0; i < children.size(); ++i) { UIComponent child = (UIComponent) children.get(i); if (child instanceof UIReplicator) { expandReplicator(target, (UIReplicator) child, state); } else { UIComponent cloned = cloneComponent(child, state); target.addComponent(cloned); } } }
for (int i = 0; i < thischildren.size(); ++i) { UIComponent thischild = thischildren.componentAt(i); if (thischild instanceof UIContainer) {