Package com.smartgwt.client.widgets.tree

Examples of com.smartgwt.client.widgets.tree.Tree.reloadChildren()


        // if this is the root just refresh from the top
        Tree tree = treeGrid.getTree();
        TreeNode refreshNode = tree.getParent(node);
        if (null == refreshNode.getName()) {
            tree.reloadChildren(node);
            return;
        }

        // reloads are performed only on resource nodes. find the first parental resource node, traversing
        // through autogroup and subcategory nodes as needed.
View Full Code Here


        // through autogroup and subcategory nodes as needed.
        while (!(refreshNode instanceof ResourceTreeNode)) {
            refreshNode = tree.getParent(refreshNode);
        }

        tree.reloadChildren(refreshNode);
    }

    private void setRootResource(Resource rootResource) {
        this.rootResource = rootResource;
    }
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.