Package org.apache.myfaces.custom.tree.model

Examples of org.apache.myfaces.custom.tree.model.DefaultTreeModel.nodesWereInserted()


            // Get the index of the new node.
            TreeNode parentNode = SecurityApplicationUtils.findTreeNode(roleTree, getParentRole().getFullPath());
            TreeNode childNode = SecurityApplicationUtils.findTreeNode(roleTree, addedRole.getPreferences().absolutePath());
            int [] childIndices = {treeModel.getIndexOfChild(parentNode, childNode)};
            // Send the node inserted event.
            treeModel.nodesWereInserted(parentNode, childIndices);
        }
        catch (SecurityException se)
        {
            log.error("Error adding role " + getRoleName() + ". " + se);
        }
View Full Code Here


            // Get the index of the new node.
            TreeNode parentNode = SecurityApplicationUtils.findTreeNode(roleTree, getParentRole().getFullPath());
            TreeNode childNode = SecurityApplicationUtils.findTreeNode(roleTree, addedRole.getPreferences().absolutePath());
            int [] childIndices = {treeModel.getIndexOfChild(parentNode, childNode)};
            // Send the node inserted event.
            treeModel.nodesWereInserted(parentNode, childIndices);
        }
        catch (SecurityException se)
        {
            log.error("Error adding role " + getRoleName() + ". " + se);
        }
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.