Package com.alee.extended.tree

Examples of com.alee.extended.tree.WebAsyncTree


     */
    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        // Editable asynchronous tree
        final WebAsyncTree tree1 = new WebAsyncTree ();
        tree1.setEditable ( true );
        tree1.setSelectionMode ( WebTree.DISCONTIGUOUS_TREE_SELECTION );
        final WebScrollPane treeScroll1 = new WebScrollPane ( tree1 );
        treeScroll1.setPreferredSize ( new Dimension ( 200, 150 ) );

        // Asynchronous tree with a custom selection style
        final WebAsyncTree tree2 = new WebAsyncTree ();
        tree2.setEditable ( true );
        tree2.setSelectionMode ( WebTree.DISCONTIGUOUS_TREE_SELECTION );
        tree2.setSelectionStyle ( TreeSelectionStyle.group );
        final WebScrollPane treeScroll2 = new WebScrollPane ( tree2 );
        treeScroll2.setPreferredSize ( new Dimension ( 200, 150 ) );

        // Installing childs reload mouse listener
        installReloadListener ( tree1 );
View Full Code Here


                            realNodes.add ( ( E ) exTree.findNode ( node.getId () ) );
                        }
                    }
                    else if ( tree instanceof WebExTree )
                    {
                        final WebAsyncTree exTree = ( WebAsyncTree ) tree;
                        realNodes = new ArrayList<E> ();
                        for ( final UniqueNode node : uniqueNodes )
                        {
                            realNodes.add ( ( E ) exTree.findNode ( node.getId () ) );
                        }
                    }
                    else
                    {
                        realNodes = nodes;
View Full Code Here

TOP

Related Classes of com.alee.extended.tree.WebAsyncTree

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.