Package com.smartgwt.client.widgets.tree.events

Examples of com.smartgwt.client.widgets.tree.events.NodeClickHandler


        setSortField("name");
        setShowHeader(false);

        setDataSource(new ContentRepositoryTreeDataSource());

        addNodeClickHandler(new NodeClickHandler() {
            public void onNodeClick(NodeClickEvent event) {
                String id = event.getNode().getAttribute("id");
                if (id != null) {
                    String path = id.replaceAll(":", "/");
                    CoreGUI.goToView("Bundles/Repository/" + path);
View Full Code Here


        setSortDirection(SortDirection.ASCENDING);
        setShowHeader(false);

        setDataSource(new BundleTreeDataSource());

        addNodeClickHandler(new NodeClickHandler() {
            public void onNodeClick(NodeClickEvent event) {
                TreeNode node = event.getNode();
                String path = node.getAttribute("id").replaceAll("_", "/");

                // the node ID is the path the form <bundleGroupId>_<the rest of the node ID>
View Full Code Here

        DataSource supplyCategoryDS = SupplyCategoryXmlDS.getInstance();
        DataSource supplyItemDS = ItemSupplyXmlDS.getInstance();

        categoryTree = new CategoryTreeGrid(supplyCategoryDS);
        categoryTree.setAutoFetchData(true);
        categoryTree.addNodeClickHandler(new NodeClickHandler() {
            public void onNodeClick(NodeClickEvent event) {
                String category = event.getNode().getAttribute("categoryName");
                findItems(category);
            }
        });
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.tree.events.NodeClickHandler

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.