borland Packages Class Hierarchy jbcl.model Package Index
java.lang.Object +----borland.jbcl.model.LinkedTreeContainer +----borland.jbcl.model.BasicTreeContainer
Variables Constructors Properties Methods Event Listeners
Implements GraphModel, WritableGraphModel, Serializable
This data provider component handles a graph data model; that is, data arranged in a hierarchy such as a directory structure. It accepts data that are of type LinkedTreeNode.
protected boolean eventsUsed to determine whether graph-model events are enabled. If events is true, graph-model events can be processed.
protected transient EventMulticaster listenersContains set of listeners for graph-model events generated in this component.
protected LinkedTreeNode rootDetermines the root node of the tree hierarchy.
public LinkedTreeContainer()Creates a new LinkedTreeContainer object with a null root node.
public LinkedTreeContainer(borland.jbcl.model.LinkedTreeNode root)Creates a new LinkedTreeContainer object with the specified root node.
Parameters:
public GraphLocation getRoot()Obtains the root node for this LinkedTreeContainer object.
public boolean isVariableSize()Determines whether the size of the LinkedTreeContainer can vary. If variableSize is true, nodes can be added and deleted; otherwise, the size of the tree cannot change.
public InputIterator elements()Returns the nodes of the tree as an InputIterator. As it does so, it creates an array to hold the nodes and calls the fillNodes() method to populate the array.
protected void fillNodes(borland.jbcl.model.LinkedTreeNode node, com.objectspace.jgl.Array nodes)Used to fill in the nodes from an input iterator.
Parameters:
public void processModelEvent(borland.jbcl.model.GraphModelEvent e)Dispatches graph-model events to all registered listeners.
Parameters:
public void addModelListener(borland.jbcl.model.GraphModelListener listener) public void removeModelListener(borland.jbcl.model.GraphModelListener listener)