Package org.openfaces.component.table.impl

Examples of org.openfaces.component.table.impl.NodeInfo


        TableDataModel model = getModel();
        Map<Object, ? extends NodeInfo> rowHierarchy = model.getDerivedRowHierarchy();
        if (rowHierarchy == null) return false;

        if (rowIndex == -1) return false;
        NodeInfo nodeInfo = rowHierarchy.get(rowIndex);
        if (nodeInfo == null) return false;

        return nodeInfo.getNodeHasChildren();
    }
View Full Code Here


                if (intRowIndex < fromRowIndex || intRowIndex >= fromRowIndex + rowCount)
                    continue;
                intRowIndex -= fromRowIndex;
                rowIndex = intRowIndex;
            }
            NodeInfo expansionData = entry.getValue();
            boolean nodeHasChildren = expansionData.getNodeHasChildren();
            Object childCount = nodeHasChildren
                    ? (expansionData.getChildrenPreloaded() ? String.valueOf(expansionData.getChildNodeCount()) : "?")
                    : 0;
            try {
                result.put(String.valueOf(rowIndex), childCount);
            } catch (JSONException e) {
                throw new RuntimeException(e);
View Full Code Here

TOP

Related Classes of org.openfaces.component.table.impl.NodeInfo

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.