borland Packages  Class Hierarchy  dbswing Package 

JdbNavTree component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----javax.swing.JComponent
                           +----javax.swing.JTree
                                   +----com.borland.dbswing.JdbNavTree

About the JdbNavTree component

Variables  Constructors  Properties  Methods  Event Listeners

Implements ColumnAware, DataSetAware, ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

Note: This is a feature of JBuilder Professional and Enterprise.

The JdbNavTree is a data-aware extension of the JTree component, allowing it to connect to and navigate a DataSet through the dataSet and columnName properties. When you select an item from the JdbNavTree, it moves the pointer in the DataSet to the corresponding row. Any updates made to the items displayed in the JdbNavTree are ignored.

See also: JdbTree


JdbNavTree variables

Variables implemented in this class

Variables implemented in java.awt.Component

Variables implemented in javax.swing.JComponent

Variables implemented in javax.swing.JTree

JdbNavTree constructors

JdbNavTree properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

Properties implemented in javax.swing.JComponent

Properties implemented in javax.swing.JTree

JdbNavTree methods

Methods implemented in this class

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.lang.Object

Methods implemented in javax.swing.JComponent

Methods implemented in javax.swing.JTree

JdbNavTree event listeners


JdbNavTree variables

navBinder

  protected DBTreeNavBinder navBinder
The JdbTreeNavBinder to which methods are delegated.

JdbNavTree constructors

JdbNavTree()

  public JdbNavTree()
Constructs a JdbNavTree by calling the constructor of its superclass and passing to it an empty array of Objects.

JdbNavTree(java.lang.Object[])

  public JdbNavTree(Object[] value)
Constructs a JdbNavTree by calling the constructor of its superclass and passing to it an array of Objects.

Parameters:

value
The array of Objects used to create the tree.

JdbNavTree(java.util.Hashtable)

  public JdbNavTree(Hashtable value)
Constructs a JdbNavTree by calling the constructor of its superclass and passing to it a HashTable.

Parameters:

value
The HashTable containing the data for the tree.

JdbNavTree(java.util.Vector)

  public JdbNavTree(Vector value)
Constructs a JdbNavTree by calling the constructor of its superclass and passing to it a Vector.

Parameters:

value
The Vector containing the data for the tree.

JdbNavTree(javax.swing.tree.TreeModel)

  public JdbNavTree(TreeModel treeModel)
Constructs a JdbNavTree by calling the constructor of its superclass and passing to it a TreeModel.

Parameters:

treeModel
The model containing the data for the tree.

JdbNavTree(javax.swing.tree.TreeNode)

  public JdbNavTree(TreeNode root)
Constructs a JdbNavTree by calling the constructor of its superclass and passing to it the root node.

Parameters:

root
The node that becomes the root of the tree.

JdbNavTree(javax.swing.tree.TreeNode, boolean)

  public JdbNavTree(TreeNode root, boolean asksAllowsChildren)
Constructs a JdbNavTree by calling the constructor of its superclass and passing to it the root node and a parameter that specifies whether the tree can have child nodes.

Parameters:

root
The TreeNode that becomes the first or root node of the tree.
asksAllowsChildren
Determines whether the tree can have child nodes. If true, the tree can have child nodes.

JdbNavTree properties

columnName

 public String getColumnName()
 public void setColumnName(String columnName)
Returns and sets the column name of the DataSet from which values are read.

See also: dataSet

dataSet

 public DataSet getDataSet()
 public void setDataSet(DataSet dataSet)
Returns and sets the DataSet from which values are read.

See also: columnName

useLeafNodesOnly

 public boolean isUseLeafNodesOnly()
 public void setUseLeafNodesOnly(boolean useLeafNodesOnly)
Returns whether to ignore internal node values during selection changes and when locating nodes by value. Sets whether to ignore internal node values during selection changes and when locating nodes by value.

JdbNavTree methods

commonInit()

  protected void commonInit()
Used to initialize JdbNavTree with the same defaults, regardless of the constructor used. Sets its binder to be an instance of DBTreeNavBinder.

JdbNavTree event listeners

This component is a source for the following event sets.

ancestor

 public void addAncestorListener(javax.swing.event.AncestorListener )
 public void removeAncestorListener(javax.swing.event.AncestorListener )

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener )
 public synchronized void removeComponentListener(java.awt.event.ComponentListener )

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener )
 public synchronized void removeContainerListener(java.awt.event.ContainerListener )

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener )
 public synchronized void removeFocusListener(java.awt.event.FocusListener )

inputMethod

 public synchronized void addInputMethodListener(java.awt.event.InputMethodListener )
 public synchronized void removeInputMethodListener(java.awt.event.InputMethodListener )

key

 public synchronized void addKeyListener(java.awt.event.KeyListener )
 public synchronized void removeKeyListener(java.awt.event.KeyListener )

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener )
 public synchronized void removeMouseListener(java.awt.event.MouseListener )

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener )
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )

propertyChange

 public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener )
 public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )

treeExpansion

 public void addTreeExpansionListener(javax.swing.event.TreeExpansionListener )
 public void removeTreeExpansionListener(javax.swing.event.TreeExpansionListener )

treeSelection

 public void addTreeSelectionListener(javax.swing.event.TreeSelectionListener )
 public void removeTreeSelectionListener(javax.swing.event.TreeSelectionListener )

treeWillExpand

 public void addTreeWillExpandListener(javax.swing.event.TreeWillExpandListener )
 public void removeTreeWillExpandListener(javax.swing.event.TreeWillExpandListener )

vetoableChange

 public synchronized void addVetoableChangeListener(java.beans.VetoableChangeListener )
 public synchronized void removeVetoableChangeListener(java.beans.VetoableChangeListener )