Package com.smartgwt.client.widgets.grid

Examples of com.smartgwt.client.widgets.grid.ColumnTree

For information on DataBinding Trees, see {@link com.smartgwt.client.docs.TreeDataBinding}.

A ColumnTree shows a single branch of the underlying {@link com.smartgwt.client.widgets.tree.Tree} horizontally, from left to right. Thus, the leftmostcolumn shows all the top-level nodes. When the user clicks one of those nodes, a new column is shown immediately to the right of the top-level column, showing the selected node's children. Additional columns are shown as required to present lower-level children. The behavior of ColumnTree is similar to that of the Browser interface in the Apple™ iTunes™ application.


            return DESCRIPTION;
        }
    }

    public Canvas getViewPanel() {
        ColumnTree columnTree = new ColumnTree();
        columnTree.setWidth100();
        columnTree.setHeight(205);
        columnTree.setDataSource(EmployeeXmlDS.getInstance());
        columnTree.setAutoFetchData(true);
        columnTree.setNodeIcon("icons/16/person.png");
        columnTree.setFolderIcon("icons/16/person.png");
        columnTree.setShowOpenIcons(false);
        columnTree.setShowDropIcons(false);
        columnTree.setClosedIconSuffix("");

        columnTree.setShowHeaders(true);
        columnTree.setShowNodeCount(true);       
        columnTree.setLoadDataOnDemand(false);
        return columnTree;
    }
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.grid.ColumnTree

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.