FileDocCategorySizeDatePackage
RootNode.javaAPI DocExample1403Mon Aug 28 20:14:20 BST 2000com.imaginary.bank.ui

RootNode

public class RootNode extends Object implements TreeNode

Fields Summary
private ArrayList
nodes
Constructors Summary
public RootNode()

        super();
        nodes.add(new AccountNode(this));
        nodes.add(new CustomerNode(this));
    
Methods Summary
public java.util.Enumerationchildren()

        return new IteratorEnumeration(nodes.iterator());
    
public booleangetAllowsChildren()

        return true;
    
public javax.swing.tree.TreeNodegetChildAt(int ind)

        return (TreeNode)nodes.get(ind);
    
public intgetChildCount()

        return nodes.size();
    
public intgetIndex(javax.swing.tree.TreeNode chld)

        return nodes.indexOf(chld);
    
public javax.swing.tree.TreeNodegetParent()

        return null;
    
public booleanisLeaf()

        return false;
    
public java.lang.StringtoString()

        return "Root";