Package javax.swing.tree

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


          vehiclePenetrationRateNode.setUserObject("Penetration rate: "
              + Utilities.calculatePenetrationRate(classicVehicleCount, v2xEquippedVehicleCount) + "%");
          SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
              model.nodeStructureChanged(vehiclePenetrationRateNode);
            }
          });

          break;
        case roadsideUnitAdded:
View Full Code Here


          roadsideUnitCountNode.setUserObject("Count: " + roadsideUnitCount);
          SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
              model.nodeStructureChanged(roadsideUnitCountNode);
            }
          });

          break;
        case trafficLightAdded:
View Full Code Here

          trafficLightCountNode.setUserObject("Count: " + trafficLightCount);
          SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
              model.nodeStructureChanged(trafficLightCountNode);
            }
          });

          break;
        case classicVehicleRemoved:
View Full Code Here

          vehicleClassicCountNode.setUserObject("Count (Classic Vehicles): " + classicVehicleCount);
          SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
              model.nodeStructureChanged(vehicleClassicCountNode);
            }
          });

          break;
        case v2xEquippedVehicleRemoved:
View Full Code Here

          roadsideUnitCountNode.setUserObject("Count: " + roadsideUnitCount);
          SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
              model.nodeStructureChanged(roadsideUnitCountNode);
            }
          });

          break;
        case trafficLightRemoved:
View Full Code Here

          trafficLightCountNode.setUserObject("Count: " + trafficLightCount);
          SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
              model.nodeStructureChanged(trafficLightCountNode);
            }
          });

          break;
      }
View Full Code Here

            }

            // Tell the tree model that its structure has changed. This will
            // update the appearance of the tree.
            DefaultTreeModel model = (DefaultTreeModel) getModel();
            model.nodeStructureChanged(node);

            // If we wish to select a node in the tree, then do so
            if (selectNode != null) {
                TreePath path = new TreePath(node.getPath());
                TreePath childPath = path.pathByAddingChild(selectNode);
View Full Code Here

    }
   
    public void onClick() {
        node.flushChildren();
        DefaultTreeModel model = (DefaultTreeModel) App.current().getFrame().tree().getModel();
        model.nodeStructureChanged(node);
    }   
}
View Full Code Here

        }

        GuiUtil.runInSwingThread(new Runnable() {
            @Override
            public void run() {
                model.nodeStructureChanged((TreeNode) model.getRoot());
            }
        });
    }

    @Override
View Full Code Here

        if (!jenkinsAppSettings.isServerUrlSet()) {
            JenkinsWidget.getInstance(project).updateStatusIcon(BuildStatusAggregator.EMPTY);
            DefaultTreeModel model = (DefaultTreeModel) jobTree.getModel();
            DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
            root.removeAllChildren();
            model.nodeStructureChanged(root);
            jobTree.setRootVisible(false);

            jenkins.update(Jenkins.byDefault());

            currentSelectedView = null;
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.