private boolean isTreePathValid(TreePath path) { Object parent = _model.getRoot(); for (int i = 0; i < path.getPathCount(); i++) { Object pathComponent = path.getPathComponent(i); if (i == 0) { if (pathComponent != parent) { return false; } } else { boolean found = false; for (int j = 0; j < getChildrenCount(parent); j++) { Object child = getChild(parent, j); if (child == pathComponent) { found = true; break; } } if (!found) { return false; } parent = pathComponent; } } return true; }
Object childNode = getChild(parentNode, i); if (childNode == node) continue;
Object childNode = getChild(node, i); if (!isPathSelected(path.pathByAddingChild(childNode), true)) { allChildrenSelected = false;
int childCount = getChildrenCount(node); for (int i = 0; i < childCount; i++) { Object childNode = getChild(node, i); if (!JideSwingUtilities.equals(childNode, peekNode)) { TreePath treePath = temp.pathByAddingChild(childNode);