Example usage for javax.swing.tree MutableTreeNode getChildCount

List of usage examples for javax.swing.tree MutableTreeNode getChildCount

Introduction

In this page you can find the example usage for javax.swing.tree MutableTreeNode getChildCount.

Prototype

int getChildCount();

Source Link

Document

Returns the number of children TreeNodes the receiver contains.

Usage

From source file:org.openconcerto.erp.model.RubriquePayeTree.java

private static void removeNode(SQLRow row, MutableTreeNode nodeParent) {
    for (int i = 0; i < nodeParent.getChildCount(); i++) {
        Object o = nodeParent.getChildAt(i);
        if (o instanceof VariableRowTreeNode) {
            VariableRowTreeNode v = (VariableRowTreeNode) o;
            if (v.getID() == row.getID()) {
                model.removeNodeFromParent(v);
            }/*from w  w  w. ja v  a 2s.com*/
        }
    }
}