borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

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).


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.