public final class AOTreeModel
extends java.lang.Object
Constructor and Description |
---|
AOTreeModel(AOTreeNode root)
Crea un árbol en el que cualquier nodo puede tener hijos.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getChild(java.lang.Object parent,
int index)
Returns the child of parent at index index in the parent's
child array.
|
static int |
getChildCount(java.lang.Object parent)
Returns the number of children of parent.
|
java.lang.Object |
getRoot()
Returns the root of the tree.
|
public AOTreeModel(AOTreeNode root)
root
- La raíz del árbolpublic java.lang.Object getRoot()
public static java.lang.Object getChild(java.lang.Object parent, int index)
index
- the position index of the childparent
- a node in the tree, obtained from this data sourcepublic static int getChildCount(java.lang.Object parent)
parent
- a node in the tree, obtained from this data source