/** * Set the value of children packs to the same value as the parent pack. * * @param parentPack */ private void updateChildren(Pack parentPack) { String parentName = parentPack.getName(); int parentPosition = nameToRow.get(parentName); CbSelectionState parentValue = checkValues.get(parentPosition); for (String childName : parentPack.getChildren()) { int childPosition = nameToRow.get(childName); checkValues.set(childPosition, parentValue); } }
for (String childName : parentPack.getChildren()) if (parentPack.getChildren().size() == childrenSelected)
for (String childPackName : pack.getChildren())
if(pack.hasChildren()) for(String childPackName : pack.getChildren())