Lines Matching defs:parent
491 * Returns the child of <I>parent</I> at index <I>index</I> in
492 * the parent's child array. <I>parent</I> must be a node
495 * <i>parent</i> (that is <i>index</i> >= 0 && <i>index</i>
496 * < getChildCount(<i>parent</i>)).
498 * @param parent a node in the tree, obtained from this data source
499 * @return the child of <I>parent</I> at index <I>index</I>
502 public Object getChild(Object parent, int index) {
503 if (parent == root) {
506 return super.getChild(parent, index);
510 * Returns the number of children of <I>parent</I>. Returns 0
512 * <I>parent</I> must be a node previously obtained from this
515 * @param parent a node in the tree, obtained from this data source
516 * @return the number of children of the node <I>parent</I>
519 public int getChildCount(Object parent) {
520 if (parent == root) {
523 return super.getChildCount(parent);
545 * Returns the index of child in parent.
548 public int getIndexOfChild(Object parent, Object child) {
549 if (parent == root) {
558 return super.getIndexOfChild(parent, child);
568 TreeNode parent = node.getParent();
570 if (parent == null && node != root) {
571 parent = root;
573 if (parent != null) {
574 int anIndex = getIndexOfChild(parent, node);
580 nodesChanged(parent, cIndexs);
606 TreeNode parent = aNode.getParent();
608 if (parent == null) {
609 parent = root;
611 retNodes = getPathToRoot(parent, depth);