| java.lang.Object org.sakaiproject.jsf.model.TreeLevel
TreeLevel | public class TreeLevel (Code) | | |
Field Summary | |
boolean | child |
Method Summary | |
protected int | addChild(TreeLevel child) Utility reciprocal method to add a child when it chooses this as its parent. | public List | getChildren() | public TreeLevel | getParent() Get parent, or self if no parent. | public boolean | isChild() True if this has a parent. | public static void | main(String[] args) test code, demonstrates usage. | public String | toString() String representing 0-indexed parent-child relationships. |
TreeLevel | public TreeLevel(int index)(Code) | | "Parent" constructor. This is a top level and is its own parent and is a
child of none.
|
TreeLevel | public TreeLevel()(Code) | | No-arg constructor. "Parent" constructor equivalent, with index set to 0.
|
TreeLevel | public TreeLevel(TreeLevel parent)(Code) | | "Child" constructor. Create a child of "parent".
Parameters: parent - TreeLevel |
addChild | protected int addChild(TreeLevel child)(Code) | | Utility reciprocal method to add a child when it chooses this as its parent.
Parameters: child - TreeLevel int |
getChildren | public List getChildren()(Code) | | Get list of all child TreeLevels
List |
getParent | public TreeLevel getParent()(Code) | | Get parent, or self if no parent.
TreeLevel |
isChild | public boolean isChild()(Code) | | True if this has a parent.
boolean |
main | public static void main(String[] args)(Code) | | test code, demonstrates usage.
Parameters: args - String[] |
toString | public String toString()(Code) | | String representing 0-indexed parent-child relationships.
Example: 18_9_4 is the fourth child of the nineth child of 18
String |
|
|