public interface TreeModel
Arranges tree node objects, a node can essentially be anything and it will be displayed in a hierarchy
using the Tree
And heres a more "real world" example showing an XML hierarchy in a Tree
:
Another real world example showing the FileSystemStorage
as a tree:
Modifier and Type | Method and Description |
---|---|
Vector |
getChildren(Object parent)
Returns the child objects representing the given parent, null should return
the root objects
|
boolean |
isLeaf(Object node)
Is the node a leaf or a folder
|
Vector getChildren(Object parent)
parent
- the parent object whose children should be returned, null would return the
tree rootsboolean isLeaf(Object node)
node
- a node within the treeCopyright © 2021. All rights reserved.