Lines Matching defs:root

54     protected TreeNode root;
79 * @param root a TreeNode object that is the root of the tree
82 @ConstructorProperties({"root"})
83 public DefaultTreeModel(TreeNode root) {
84 this(root, false);
91 * @param root a TreeNode object that is the root of the tree
97 public DefaultTreeModel(TreeNode root, boolean asksAllowsChildren) {
99 this.root = root;
125 * Sets the root to <code>root</code>. A null <code>root</code> implies
128 public void setRoot(TreeNode root) {
129 Object oldRoot = this.root;
130 this.root = root;
131 if (root == null && oldRoot != null) {
135 nodeStructureChanged(root);
140 * Returns the root of the tree. Returns null only if the tree has
143 * @return the root of the tree
146 return root;
212 reload(root);
370 * Builds the parents of node up to and including the root node,
382 * Builds the parents of node up to and including the root node,
389 * the root (on recursive calls), used to size the returned array
390 * @return an array of TreeNodes giving the path from the root to the
395 // This method recurses, traversing towards the root in order
397 // starting from the root and working back to the original node.
400 they passed in an element that isn't rooted at root. */
409 if(aNode == root)
468 * {@code null} to identify the root has changed
562 * use {@code null} to identify the root has changed
594 * use {@code null} to identify the root has changed
657 // Save the root, if its Serializable.
658 if(root != null && root instanceof Serializable) {
659 values.addElement("root");
660 values.addElement(root);
674 equals("root")) {
675 root = (TreeNode)values.elementAt(++indexCounter);