Examples of nodeStructureChanged()


Examples of javax.swing.tree.DefaultTreeModel.nodeStructureChanged()

      DefaultTreeModel model = (DefaultTreeModel) getModel();
      if (action == CircuitEvent.ACTION_SET_NAME) {
        model.nodeChanged(this);
      } else {
        if (computeChildren()) {
          model.nodeStructureChanged(this);
        } else if (action == CircuitEvent.ACTION_INVALIDATE) {
          Object o = event.getData();
          for (int i = children.size() - 1; i >= 0; i--) {
            Object o2 = children.get(i);
            if (o2 instanceof ComponentNode) {
View Full Code Here

Examples of javax.swing.tree.DefaultTreeModel.nodeStructureChanged()

                            final DefaultTreeModel treeModel = (DefaultTreeModel)((JTree)ev.getSource()).getModel();
                            SwingUtilities.invokeLater( new Runnable()
                            {
                                public void run()
                                {
                                    treeModel.nodeStructureChanged(thisNode);
                                    m_progBar.reset();
                                    m_statusBar.setText(String.format(Main.getString("statusbar_opendir_items"), thisNode.getChildCount()));
                                    setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
                                    m_expandThread = null;
                                }
View Full Code Here

Examples of javax.swing.tree.DefaultTreeModel.nodeStructureChanged()

                                {
                                    public void actionPerformed (ActionEvent ev)
                                    {
                                        DefaultMutableTreeNode parent = (DefaultMutableTreeNode)treeNode.getParent();
                                        parent.remove(treeNode);
                                        treeModel.nodeStructureChanged(parent);
                                        /*
                                        JPathTreeNode root = (JPathTreeNode)treeModel.getRoot();
                                        ArrayList<TreePath> treePathList = new ArrayList<TreePath>();
                                        root.addExpandedChilds(m_tree, treePathList);
                                        for (TreePath item : treePathList)
View Full Code Here

Examples of javax.swing.tree.DefaultTreeModel.nodeStructureChanged()

                                    {
                                        DefaultMutableTreeNode root = (DefaultMutableTreeNode)treeModel.getRoot();
                                        String path = getPathFromTreePath(treePath);
                                        JPathTreeNode newNode = new JPathTreeNode(path, !JPathTreeNode.hasChilds(new File(path)), false, true);
                                        root.insert(newNode, 0);
                                        treeModel.nodeStructureChanged(root);
                                        m_tree.scrollPathToVisible(selTreePath);
                                        m_tree.scrollPathToVisible(new TreePath(newNode.getPath()));
                                    }
                                });
                            }
View Full Code Here

Examples of javax.swing.tree.DefaultTreeModel.nodeStructureChanged()

            // Redraw this node, so that the entire name appears, necessary if
            // the name is made longer and to avoid the "..." that would be
            // drawn as a result.
            DefaultTreeModel model = (DefaultTreeModel)cellHierarchyTree.getModel();
            if (parentNode != null) {
                model.nodeStructureChanged(parentNode);
            }
            model.nodeChanged(this);

            // Make sure selected node is still selected
            TreePath treePath = new TreePath(getPath());
View Full Code Here

Examples of javax.swing.tree.DefaultTreeModel.nodeStructureChanged()

            DefaultTreeModel model = (DefaultTreeModel)componentTree.getModel();
            // model.nodeChanged(node);
           
            // The following line was included because of task i78481.
            // In Java 1.6 nodeChanged does not work correctly.
            model.nodeStructureChanged(node);
           
            descriptionLabel.setText(nodeInfo.getDescription());
            sizeLabel.setText(sizeString + nodeInfo.getSize());
        }
    }
View Full Code Here

Examples of javax.swing.tree.DefaultTreeModel.nodeStructureChanged()

        dtm.insertNodeInto(this._nodPoints, nodRoot, 0);
        dtm.insertNodeInto(this._nodSegmentWiseYes, nodRoot, 0);
        dtm.insertNodeInto(this._nodPaths, nodRoot, 0);
        dtm.insertNodeInto(this._nodAreas, nodRoot, 0);
        dtm.insertNodeInto(this._nodSectors, nodRoot, 0);
        dtm.nodeStructureChanged(nodRoot);

        // beg this order
        if (super.isVisible())
            super.expandAll();
       
View Full Code Here

Examples of javax.swing.tree.DefaultTreeModel.nodeStructureChanged()

        dtm.insertNodeInto(_nodPoints_, nodRoot, 0);
        dtm.insertNodeInto(_nodSegmentsWiseYes_, nodRoot, 0);
        dtm.insertNodeInto(_nodPaths_, nodRoot, 0);
        dtm.insertNodeInto(_nodAreas_, nodRoot, 0);
        dtm.insertNodeInto(_nodSectors_, nodRoot, 0);
        dtm.nodeStructureChanged(nodRoot);
  
        // beg this order
        if (super.isVisible())
            super.expandAll();
       
View Full Code Here

Examples of javax.swing.tree.DefaultTreeModel.nodeStructureChanged()

      dtm.insertNodeInto(_nodPoints, nodRoot, 0);
      dtm.insertNodeInto(_nodSegmentsWiseYes, nodRoot, 0);
      dtm.insertNodeInto(_nodPaths, nodRoot, 0);
      dtm.insertNodeInto(_nodAreas, nodRoot, 0);
      dtm.insertNodeInto(_nodSectors, nodRoot, 0);
      dtm.nodeStructureChanged(nodRoot);

      if (!this._nodSectors.init())
         throw new Exception("! this._nodSectors.init()");

      if (!this._nodSegmentsWiseYes.init())
View Full Code Here

Examples of javax.swing.tree.DefaultTreeModel.nodeStructureChanged()

         blnShouldUpdate = true;

      if (blnShouldUpdate)
      {
         DefaultTreeModel dtm = (DefaultTreeModel) super._tree.getModel();
         dtm.nodeStructureChanged(this);
      }
   }

   private void _loadChildrenFolder_(String[] strsId) throws Exception
   {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.