Examples of collapsePath()


Examples of javax.swing.JTree.collapsePath()

                        if (node.getUserObject() instanceof ObjectInfo) {
                            ObjectInfo oj = (ObjectInfo)node.getUserObject();
                            if ( (oj.flag.equals("object")) || (oj.flag.equals("favorites")) || (oj.flag.equals("book")) || (oj.flag.equals("bookSettings")) )
                                tree.collapsePath(tree.getSelectionPath());
                            else if (oj.flag.equals("layout"))
                                tree.collapsePath(tree.getSelectionPath().getParentPath());
                        }
                    }               
            }

    }
View Full Code Here

Examples of javax.swing.JTree.collapsePath()

                    else
                        jj++;
                    j++;
                }
                if ((!expanded) && (specifyTreePath == null))
                    tree.collapsePath(treePath);
            }
           
            return specifyTreePath;
       
    }
View Full Code Here

Examples of javax.swing.JTree.collapsePath()

    }
   
    private void collapse() {
       
            JTree tree = getContainer().getTree();
            tree.collapsePath(tree.getLeadSelectionPath());
       
    }
   
    private void showClearRegisterManagerDialog() {
        new ClearRegsManagerDialog(container);
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.