Package javax.swing.tree

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


  
   // ??? maybe private usage ???
   public void deleteChild(GfrNodCtrAbs nodChild) throws Exception
    {
        DefaultTreeModel dtm = (DefaultTreeModel) super._tree.getModel();
        dtm.removeNodeFromParent(nodChild);
       
        nodChild.destroy();
        nodChild = null;
    }
  
View Full Code Here


   // ??? maybe private usage ???
   public void deleteChild(GfrNodCtrAbs nodChild) throws Exception
   {
      DefaultTreeModel dtm = (DefaultTreeModel) super._tree.getModel();
      dtm.removeNodeFromParent(nodChild);

      nodChild.destroy();
      nodChild = null;
   }
View Full Code Here

   // !!! private ???
   public void deleteChild(GfrNodCtrAbs nodChild) throws Exception
   {
      DefaultTreeModel dtm = (DefaultTreeModel) super._tree.getModel();
      dtm.removeNodeFromParent(nodChild);

      nodChild.destroy();
      nodChild = null;
   }
View Full Code Here

        JSimLogic.getInstance().removeRemoteProject(
            (RemoteProject) selectedNode.getProject());

    }
    DefaultTreeModel model = (DefaultTreeModel) getModel();
    model.removeNodeFromParent(selectedNode);

    // model.nodeStructureChanged(selectedNode);

  }
View Full Code Here

            tempNode = (MibNode) e.nextElement();
            if (tempNode.getValue() == null &&
                tempNode.getName().equals(mibName)) {

                removeNodes(tempNode);
                model.removeNodeFromParent(tempNode);
                return true;
            }
        }
        return false;
    }
View Full Code Here

                ((OutlineField)this._component).getModel().removeNodeFromParent(kid);
            }
            else if (this._component instanceof JTree) {
                DefaultTreeModel tm = ((TreeViewModel) ((JTree) this._component).getModel());
                if (kid.getParent() != null)
                    tm.removeNodeFromParent(kid);
            }
            else if (this._component instanceof JTable) {

            }
            else if (this._component instanceof JListView) {
View Full Code Here

            if (rootNode != null) {
                Object root = rootNode.getUserObject();
                if (root != null) {
                    if (root instanceof JTree) {
                        DefaultTreeModel model = (DefaultTreeModel)(((JTree)root).getModel());
                        model.removeNodeFromParent(this);
                        handled = true;
                    }
                    else if (root instanceof ListView) {
                        ListView lv = (ListView)root;
                        lv.removeNode(this);
View Full Code Here

                        this.removeFromParent();
                        handled = true;
                    }
                    else if (root instanceof OutlineField) {
                        DefaultTreeModel model = (DefaultTreeModel)(((OutlineField)root).getModel());
                        model.removeNodeFromParent(this);
                        handled = true;
                    }
                }
            }
            if (!handled) {
View Full Code Here

                ((OutlineField)this._component).getModel().removeNodeFromParent(kid);
            }
            else if (this._component instanceof JTree) {
                DefaultTreeModel tm = ((TreeViewModel) ((JTree) this._component).getModel());
                if (kid.getParent() != null)
                    tm.removeNodeFromParent(kid);
            }
            else if (this._component instanceof JTable) {

            }
            else if (this._component instanceof JListView) {
View Full Code Here

            if (rootNode != null) {
                Object root = rootNode.getUserObject();
                if (root != null) {
                    if (root instanceof JTree) {
                        DefaultTreeModel model = (DefaultTreeModel)(((JTree)root).getModel());
                        model.removeNodeFromParent(this);
                        handled = true;
                    }
                    else if (root instanceof ListView) {
                        ListView lv = (ListView)root;
                        lv.removeNode(this);
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.