Package org.arch4j.ui.tree

Examples of org.arch4j.ui.tree.BrowserTreeNode


          if ( elemName == null ) {
            elemName = anElement.getName();
          }
        }
       
        BrowserTreeNode theNode = new BrowserTreeNode();
        theNode.setText( elemName );
        theNode.setIconAccessor("folderc");
        theNode.setAction("showElementPanel");
        theNode.setUserObject(anElement);
        theNode.setName("element");
       
        // set the menu if found
        JPopupMenu theNodeMenu = getCommandManager().createPopupMenu( menuName );
       
        // if no menu found, use the default one.
        if ( theNodeMenu == null ) {
          theNode.setMenu( getCommandManager().createPopupMenu( "nodeMenu" ));
        }
        else {
          theNode.setMenu( theNodeMenu );
        }
       
        theNode.setEnabled(true);
       
        return theNode;
    }
View Full Code Here

TOP

Related Classes of org.arch4j.ui.tree.BrowserTreeNode

Copyright © 2018 www.massapicom. 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.