Package net.sourceforge.processdash.hier.ui.HierarchyTreeModel

Examples of net.sourceforge.processdash.hier.ui.HierarchyTreeModel.HierarchyTreeNode


        return v;
    }

   
    private void getSelectedPaths(Object object, Vector v, boolean brief) {
        HierarchyTreeNode node = (HierarchyTreeNode) object;
        if (!unselectedNodes.contains(node)) {
            v.add(node.getPath());
            if (brief)
                return;
        }
        for (int i = node.getChildCount();   i-- > 0; )
            getSelectedPaths(node.getChildAt(i), v, brief);
    }
View Full Code Here


        toggleSelection(treePath);
        return true;
    }

    protected void toggleSelection(TreePath selPath) {
        HierarchyTreeNode node =
            (HierarchyTreeNode) selPath.getLastPathComponent();

        // toggle current selection status.
        boolean isSelected = unselectedNodes.contains(node);
        setSelectionStatusRecursive(node, isSelected);
        if (!isSelected) {
            while (true) {
                node = (HierarchyTreeNode) node.getParent();
                if (node == null) break;
                setSelectionStatus(node, false);
            }
        }
        fireListSelectionEvent(false);
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.hier.ui.HierarchyTreeModel.HierarchyTreeNode

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.