Lines Matching refs:treeModel
85 protected DefaultTreeModel treeModel;
112 treeModel = new SampleTreeModel(root);
115 tree = new JTree(treeModel);
342 parent = (DefaultMutableTreeNode) treeModel.getRoot();
346 parent = (DefaultMutableTreeNode) treeModel.getRoot();
350 treeModel.setRoot(createNewNode("Added " + Integer.toString(
355 newIndex = treeModel.getChildCount(parent);
361 treeModel.insertNodeInto(createNewNode("Added " + Integer.
391 parent = (DefaultMutableTreeNode) treeModel.getRoot();
395 parent = (DefaultMutableTreeNode) treeModel.getRoot();
399 treeModel.setRoot(createNewNode("Inserted " + Integer.toString(
405 newIndex = treeModel.getChildCount(parent);
411 treeModel.insertNodeInto(createNewNode("Inserted " + Integer.
434 treeModel.reload(lastItem);
482 treeModel.setRoot(null);
525 indices[counter] = treeModel.getIndexOfChild(parentNode,
529 treeModel.nodesWereRemoved(parentNode, indices, removedNodes);
572 int p1Index = treeModel.getIndexOfChild(p1.getParentPath().
574 int p2Index = treeModel.getIndexOfChild(p2.getParentPath().