Package org.openfaces.component.table

Examples of org.openfaces.component.table.TreePath


    public List<String> getDynamicColumns1() {
        return dynamicColumns1;
    }

    public boolean isHighlightedByNodePath() {
        TreePath path = (TreePath) Faces.var("nodePath");
        TreePath pathToCompare = new TreePath(treeTableItem, new TreePath(treeTableItemChild, new TreePath(treeTableItemRoot, null)));
        return path.equals(pathToCompare);
    }
View Full Code Here


    }

    public String treeDemoRemovePermission() {
        List paths = new ArrayList(Arrays.asList(treeDemoSelectedNodePaths));
        for (Object path : paths) {
            TreePath nodePath = (TreePath) path;
            if (nodePath.getLevel() == 0) {
                continue;
            }
            User user = (User) nodePath.getValue();
            Permission permission = (Permission) nodePath.getParentPath().getValue();
            user.getPermissions().remove(permission);
        }
        treeDemoSelectedNodePaths = null;
        return null;
    }
View Full Code Here

        TestTreeTablePermission documentCreation = new TestTreeTablePermission("3", "Document Creation");
        TestTreeTablePermission documentModification = new TestTreeTablePermission("4", "Document Modification");
        TestTreeTablePermission documentDeletion = new TestTreeTablePermission("5", "Document Deletion");
        TestTreeTablePermission networkAccess = new TestTreeTablePermission("6", "Network Access");

        treeDemoSelectedNodePath = new TreePath(userManagement, treeDemoSelectedNodePath);
        nodeData = new TestTreeTablePermission("1", "User Management");

        documentBrowsingPath = new TreePath(documentBrowsing, documentBrowsingPath);
        networkAccessPath = new TreePath(networkAccess, networkAccessPath);
        treePaths.add(documentBrowsingPath);
        treePaths.add(networkAccessPath);

        nodeDatas.add(new TestTreeTablePermission("2", "Document Browsing"));
        nodeDatas.add(new TestTreeTablePermission("5", "Document Deletion"));
View Full Code Here

        int rowIndex = Integer.parseInt(portionNameSuffix);
        TreeTable treeTable = (TreeTable) component;
        boolean rowAvailableAfterRestoring = treeTable.isRowAvailableAfterRestoring(rowIndex);
        if (rowAvailableAfterRestoring) {
            treeTable.setRowIndex(rowIndex);
            TreePath nodeKeyPath = treeTable.getNodeKeyPath();
            treeTable.setNodeExpanded(nodeKeyPath, true);
        }
        int addedRowCount = rowAvailableAfterRestoring ? treeTable.loadSubNodes(rowIndex) : 0;

        Map<Integer, CustomRowRenderingInfo> customRowRenderingInfos = (Map<Integer, CustomRowRenderingInfo>)
View Full Code Here

TOP

Related Classes of org.openfaces.component.table.TreePath

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.