Tree Nodes and List Models

Lists show all their data. Trees show only the children of expanded nodes.

BANode
- nodes : List
+ BANode(String, String, String, String)
+ addNode(BANode)

+ isExpanded() : boolean
+ setExpanded(boolean)

+ isLeaf() : boolean
+ getChildCount() : int
+ getChild(int) : BANode
+ getIndexOfChild(Object) : int

+ getName() : String
+ getTotalApps() : String
+ getPerCarQty() : String
+ getYears() : String
BARoot
+ BARoot(String...)

+ getProduct() : String
+ getPop() : String
+ getPkg() : String
+ getJbr() : String
+ getList() : String
+ getSell() : String
+ getCore() : String

TreeListModel implements both TreeModel and ListModel.

TreeListModel
+ TreeListModel(BARoot)
+ addTreeModelListener(TreeModelListener)
+ addListDataListener(ListDataListener)

+ treeCollapsed(TreeExpansionEvent)
+ treeExpanded(TreeExpansionEvent)

+ getSize() : int
+ getElementAt(int) : Object

+ isLeaf(Object) : boolean
+ getChildCount(Object) : int
+ getChild(Object, int) : Object
+ getIndexOfChild(Object, Object) : int

+ getRoot() : Object
+ valueForPathChanged(TreePath, Object)
« Interface »
ListModel
+ addListDataListener(ListDataListener)

+ getSize() : int
+ getElementAt(int) : Object


tree.addTreeExpansionListener
        (treeListModel);

« Interface »
TreeModel
+ addTreeModelListener(TreeModelListener)

+ isLeaf(Object) : boolean
+ getChild(Object, int) : Object
+ getChildCount(Object) : int
+ getIndexOfChild(Object, Object) : int

+ getRoot() : Object
+ valueForPathChanged(TreePath, Object)
« Interface »
TreeExpansionListener
+ treeCollapsed(TreeExpansionEvent)
+ treeExpanded(TreeExpansionEvent)