borland Packages  Class Hierarchy  jbcl.model Package  Index 

GraphLocation interface

borland.jbcl.model.GraphLocation

About the GraphLocation interface

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.


GraphLocation properties

*Read-only properties **Write-only properties

Properties defined in this interface

GraphLocation methods

Methods defined in this interface


GraphLocation properties

children

 public GraphLocation[] getChildren()
Returns an array of this location's child nodes (if there are any).

parent

 public GraphLocation getParent()
Returns the parent node of this location.

GraphLocation methods

hasChildren()

  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.