borland Packages  Class Hierarchy  jbcl.model Package  Index 

LinkedTreeContainer component

java.lang.Object
   +----borland.jbcl.model.LinkedTreeContainer
           +----borland.jbcl.model.BasicTreeContainer

About the LinkedTreeContainer component

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.


LinkedTreeContainer variables

Variables implemented in this class

LinkedTreeContainer constructors

LinkedTreeContainer properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

LinkedTreeContainer methods

Methods implemented in this class

Methods implemented in java.lang.Object

LinkedTreeContainer event listeners


LinkedTreeContainer variables

events

  protected boolean events
Used to determine whether graph-model events are enabled. If events is true, graph-model events can be processed.

listeners

  protected transient EventMulticaster listeners
Contains set of listeners for graph-model events generated in this component.

root

  protected LinkedTreeNode root
Determines the root node of the tree hierarchy.

LinkedTreeContainer constructors

LinkedTreeContainer()

  public LinkedTreeContainer()
Creates a new LinkedTreeContainer object with a null root node.

LinkedTreeContainer(borland.jbcl.model.LinkedTreeNode)

  public LinkedTreeContainer(borland.jbcl.model.LinkedTreeNode root)
Creates a new LinkedTreeContainer object with the specified root node.

Parameters:

root
The root node of the tree.

LinkedTreeContainer properties

root

 public GraphLocation getRoot()
Obtains the root node for this LinkedTreeContainer object.

variableSize

 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.

LinkedTreeContainer methods

elements()

  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.

fillNodes(borland.jbcl.model.LinkedTreeNode, com.objectspace.jgl.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:

node
The root node in the tree.
nodes
The array of nodes added to the root.

processModelEvent(borland.jbcl.model.GraphModelEvent)

  public void processModelEvent(borland.jbcl.model.GraphModelEvent e)
Dispatches graph-model events to all registered listeners.

Parameters:

e
The graph-model event object that is sent to listeners.

LinkedTreeContainer event listeners

This component is a source for the following event sets. For information on the JBCL event sets, see Events in JBCL.

model

 public void addModelListener(borland.jbcl.model.GraphModelListener listener)
 public void removeModelListener(borland.jbcl.model.GraphModelListener listener)