borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.view 

TreeListener interface

java.util.EventListener
   +----borland.jbcl.view.TreeListener

About the TreeListener interface

Methods  

Implemented by TreeAdapter

The TreeListener interface contains the definitions for methods that respond to all tree events. Implement this interface if your component responds to events that occur in a tree component (TreeView).

Generally, you will extend or instantiate the helper class TreeAdapter, which implements TreeListener and has an empty method body for each event handling method. For any event that your component actually handles, override the handling methods and write your special implementation.

The events in this group are:

  1. itemContracted
  2. itemExpanded


TreeListener methods

Methods defined in this interface


TreeListener methods

nodeCollapsed(borland.jbcl.view.TreeEvent)

  void nodeCollapsed(borland.jbcl.view.TreeEvent e)
A node has been collapsed. This method is called by a tree component when the user clicks on a tree node to contract it, hiding any child nodes.

Parameters:

e
The tree event.

nodeExpanded(borland.jbcl.view.TreeEvent)

  void nodeExpanded(borland.jbcl.view.TreeEvent e)
A node has been expanded. This method is called by a tree component when the user clicks on a tree node to expand it, showing any child nodes.

Parameters:

e
The tree event.