borland Packages Class Hierarchy jbcl.model Package Index
borland.jbcl.model.GraphModel +----borland.jbcl.model.WritableGraphModel
Properties Methods Event Listeners
Implemented by TreeControl, BasicTreeContainer, LinkedTreeContainer
Provides the methods for a read-only graph model object; that is, a model that holds data in a hierarchical relationship such as a directory listing. Each node (except the root node, or origin of the graph) has a parent node from which it descends. Each node may or may not have one or more sibling nodes (descendants from the same parent) and one or more children nodes (descendants from itself).
Usually you extend a class that implements this interface, such as LinkedTreeContainer, but you can implement it directly.
The root property contains the node that is the origin of the graph. The find() method returns the location of a specified data object and the get() method returns the data object at a specified node on the graph.
public GraphLocation getRoot()Returns the root node for this graph.
public GraphLocation find(java.lang.Object data)Returns the location of the passed data object in the graph.
Parameters:
public Object get(borland.jbcl.model.GraphLocation node)Returns the data object specified by the node parameter.
Parameters:
public void addModelListener(borland.jbcl.model.GraphModelListener listener) public void removeModelListener(borland.jbcl.model.GraphModelListener listener)