Package org.richfaces.model

Examples of org.richfaces.model.TreeNodeImpl.addChild()


    private org.richfaces.model.TreeNode createClassicNode(TreeNode node) {
        TreeNodeImpl result = new DataHolderTreeNodeImpl(node.isLeaf(), ((SwingTreeNodeImpl<?>) node).getData());

        for (int i = 0; i < node.getChildCount(); i++) {
            result.addChild(i, createClassicNode(node.getChildAt(i)));
        }

        return result;
    }
View Full Code Here


        TreeNodeImpl rootNode = new TreeNodeImpl();

        int key = 0;

        for (TreeNode node : nodes) {
            rootNode.addChild(key++, createClassicNode(node));
        }

        return rootNode;
    }
View Full Code Here

        if (plugins != null && plugins.size() > 0) {
            for (PluginKey pluginKey : plugins) {
                TreeNode pluginNode = createPluginNode(pluginKey);
                pluginNode.setParent(typeNode);

                typeNode.addChild(pluginKey, pluginNode);
            }
        }

        return typeNode;
    }
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.