Public Member Functions | |
RecursiveChildrenListManager () | |
RecursiveChildrenListManager (int children) | |
RecursiveChildrenListManager (int children, int childrenPerParent) | |
RecursiveChildrenListManager (Class beanClass, int children, int childrenPerParent) | |
Comparator | getComparator () |
void | initChildrenList (NodeList nodeList) |
Private Member Functions | |
Object | createBean (String args) |
Static Private Member Functions | |
Constructor | getConstructor (Class clazz) |
Private Attributes | |
int | count = 0 |
final int | children |
final int | childrenPerParent |
final Class | beanClass |
final Constructor | beanConstructor |
Static Private Attributes | |
final int | DEFAULT_CHILDREN = 10 |
final int | DEFAULT_CHILDREN_PER_PARENT = 3 |
final Class | DEFAULT_BEAN_CLASS = SimpleDemoBean.class |
GPNode root = NodeFactory.createNode(new SimpleDemoBean("parent"), new RecursiveChildrenListManager(10, 3)); expl = new TreeExplorer(); expl.setRootNode(root);This creates a tree, in which you can expand 10 parent nodes
|
Constructor to create a tree with a pre-defined number of children. This constructor uses SimpleDemoBean as Beans to display in the tree. If you need to change the default settings use a different constructor. |
|
constructor that allows to specify how many times children are added to the parents, when the user opens the branches of the tree. After this number has been reached, no further children will be added to the parent, trying to open further branch of the tree will simply result in leaf nodes.
|
|
Constructor that allows to specify (1) how many times children are added to parents when the user opens the branches of the tree and (2) how many children are added to each parent.
|
|
constructor that allows to specify how many times children are added to the parents, and how many sibling children are added each time, and the Bean class to use
|
|
helper method, uses the variable beanConstructor to create a new Bean |
|
|
|
helper method, tries to find a suitable constructor from the class specified Currently, this must either be a constructor that accepts one string or a no-argument constructor. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|