Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<TreeNode> |
children |
java.lang.String |
name |
(package private) java.lang.Object |
parent |
Constructor and Description |
---|
DemoNode(java.lang.Object p) |
DemoNode(java.lang.Object p,
java.lang.String s) |
DemoNode(java.lang.String s,
int level) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getChild(int index) |
int |
getChildCount() |
int |
getIndexOfChild(java.lang.Object child) |
java.lang.Object |
getParent() |
boolean |
isLeaf() |
java.lang.String |
toString() |
public java.lang.String name
public java.util.ArrayList<TreeNode> children
java.lang.Object parent
public DemoNode(java.lang.Object p)
public DemoNode(java.lang.Object p, java.lang.String s)
public DemoNode(java.lang.String s, int level)
public java.lang.String toString()
toString
in class java.lang.Object
public int getChildCount()
getChildCount
in interface TreeNode
public int getIndexOfChild(java.lang.Object child)
getIndexOfChild
in interface TreeNode
Copyright © 2013. All Rights Reserved.