Java JTree Model nodesChanged(DefaultTreeModel rightTreeModel)

Here you can find the source of nodesChanged(DefaultTreeModel rightTreeModel)

Description

nodes Changed

License

Apache License

Declaration

public static void nodesChanged(DefaultTreeModel rightTreeModel) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.Enumeration;

import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;

public class Main {
    public static void nodesChanged(DefaultTreeModel rightTreeModel) {
        DefaultMutableTreeNode root = (DefaultMutableTreeNode) rightTreeModel.getRoot();
        Enumeration enumeration = root.breadthFirstEnumeration();
        while (enumeration.hasMoreElements()) {
            DefaultMutableTreeNode defaultMutableTreeNode = (DefaultMutableTreeNode) enumeration.nextElement();
            rightTreeModel.nodeChanged(defaultMutableTreeNode);
        }//from  www .  ja  v  a 2  s.  com
    }
}

Related

  1. getAllTreeNodes(TreeModel model)
  2. getTreeIndents(TreeModel in)
  3. getTreeModelSize(TreeModel in)
  4. isTreePathInModel(TreeModel treeModel, TreePath treePath)
  5. logTreeNodes(TreeModel model, Object node, String indent)
  6. redrawAllTreeCells(DefaultTreeModel treeModel)
  7. redrawAllTreeCellsRec(DefaultTreeModel treeModel, TreeNode parent)
  8. searchPath(TreeModel model, TreePath oldPath)
  9. setTreeObjects(TreeModel in, Object root, Object[] items, int index)