Package javax.swing.tree

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


        resultCheckBoxMapping = new LinkedHashMap<SingleBenchmarkResult, DefaultMutableTreeNode>();
        checkBoxTree.setSelectedSingleBenchmarkNodes(new HashSet<DefaultMutableTreeNode>());
        DefaultMutableTreeNode newCheckBoxRootNode = initBenchmarkHierarchy(true);
        DefaultTreeModel treeModel = new DefaultTreeModel(newCheckBoxRootNode);
        checkBoxTree.setModel(treeModel);
        treeModel.nodeStructureChanged(newCheckBoxRootNode);
        setEnabled(true);
    }

}
View Full Code Here


        @Override
        public void actionPerformed(ActionEvent e) {
            DefaultMutableTreeNode treeRoot = initBenchmarkHierarchy(solverLevelFirst);
            DefaultTreeModel treeModel = new DefaultTreeModel(treeRoot);
            checkBoxTree.setModel(treeModel);
            treeModel.nodeStructureChanged(treeRoot);
            solverLevelFirst = !solverLevelFirst;
            checkBoxTree.setSelectedSingleBenchmarkNodes(new HashSet<DefaultMutableTreeNode>());
            for (Map.Entry<SingleBenchmarkResult, DefaultMutableTreeNode> entry : resultCheckBoxMapping.entrySet()) {
                if (((MixedCheckBox) entry.getValue().getUserObject()).getStatus() == MixedCheckBoxStatus.CHECKED) {
                    checkBoxTree.getSelectedSingleBenchmarkNodes().add(entry.getValue());
View Full Code Here

         return false;
     
      super.add(this._nodImages); // !!!!!!

      DefaultTreeModel dtm = (DefaultTreeModel) this._tree.getModel();
      dtm.nodeStructureChanged(this);

     
      return true;
   }
   
View Full Code Here

            GfrNodCtrAbs nodCur =  nodsChild.get(i);
            nodCur.removeFromParent();
        }
       
        DefaultTreeModel dtm = (DefaultTreeModel) super._tree.getModel();
        dtm.nodeStructureChanged(this);
       
        // TODO: something wtith nodCur's children
        for (int i=0; i<nodsChild.size(); i++)
        {
            GfrNodCtrAbs nodCur =  nodsChild.get(i);
View Full Code Here

      nodsChild.clear();
      nodsChild = null;

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

   @Override
   public boolean removeObjectVariable(String strId) throws Exception
   {
View Full Code Here

            GfrNodCtrAbs nodCur =  nodsChild.get(i);
            nodCur.removeFromParent();
        }
       
        DefaultTreeModel dtm = (DefaultTreeModel) super._tree.getModel();
        dtm.nodeStructureChanged(this);
       
        // TODO: something wtith nodCur's children
        for (int i=0; i<nodsChild.size(); i++)
        {
            GfrNodCtrAbs nodCur =  nodsChild.get(i);
View Full Code Here

         return false;

      super.add(this._nodPdfs); // !!!!!!

      DefaultTreeModel dtm = (DefaultTreeModel) this._tree.getModel();
      dtm.nodeStructureChanged(this);


      return true;
   }
View Full Code Here

            GfrNodCtrAbs nodCur =  nodsChild.get(i);
            nodCur.removeFromParent();
        }
       
        DefaultTreeModel dtm = (DefaultTreeModel) super._tree.getModel();
        dtm.nodeStructureChanged(this);
       
        // TODO: something wtith nodCur's children
        for (int i=0; i<nodsChild.size(); i++)
        {
            GfrNodCtrAbs nodCur =  nodsChild.get(i);
View Full Code Here

         return false;

      super.add(this._nodImages); // !!!!!!

      DefaultTreeModel dtm = (DefaultTreeModel) this._tree.getModel();
      dtm.nodeStructureChanged(this);


      return true;
   }
View Full Code Here

            GfrNodCtrAbs nodCur =  nodsChild.get(i);
            nodCur.removeFromParent();
        }
       
        DefaultTreeModel dtm = (DefaultTreeModel) super._tree.getModel();
        dtm.nodeStructureChanged(this);
       
        // TODO: something wtith nodCur's children
        for (int i=0; i<nodsChild.size(); i++)
        {
            GfrNodCtrAbs nodCur =  nodsChild.get(i);
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.