borland Packages Class Hierarchy jbcl.model Package Index
borland.jbcl.model.GraphLocation
Properties Methods
Implemented by LinkedTreeNode
The GraphLocation interface provides the methods and properties required for all objects that function as nodes in a graph model (such as the TreeControl).
The parent property returns the parent node of the location and the children property returns the nodes that are the children of this location. To find out if the node has children, call the hasChildren() method.
public GraphLocation[] getChildren()Returns an array of this location's child nodes (if there are any).
public GraphLocation getParent()Returns the parent node of this location.
public int hasChildren()Used to determine whether the GraphLocation object has any children. A returned value of 1 means there are children, a returned value of 0 means there are no children, and a returned value of -1 means it is unknown whether children exist.
If the GraphLocation is a LinkedTreeNode, hasChildren() never returns -1, or unknown.