borland Packages  Class Hierarchy  dbswing Package 

JdbNavList component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----javax.swing.JComponent
                           +----javax.swing.JList
                                   +----com.borland.dbswing.JdbNavList

About the JdbNavList component

Variables  Constructors  Properties  Methods  Event Listeners

Implements AccessListener, ColumnAware, DataSetAware, NavigationListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListSelectionListener, Scrollable

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

The JdbNavList is a data-aware extension of the JList component, allowing it to connect to, and navigate a DataSet through the dataSet and columnName properties. When you select an item from the JdbNavList, it makes the current row in the DataSet the first one whose column value matches the selected item. Any updates made to the items displayed in the JdbNavList are ignored.

Unlike JdbList, JdbNavList does not use a picklist defined in its column to fill its list. JdbNavList's list items always come from the DataSet Column it is bound to. For this reason, JdbNavList usually works best when the values in that column are unique or the DataSet is sorted on that column.

If rows are inserted, deleted, or modified in the DataSet, the JdbNavList's list is updated to reflect the changes.

If there are duplicate values in a JdbNavList, selection from the list will correctly find the row which corresponds to the specific instance of the duplicate value which is currently selected.

See also: JdbList


JdbNavList variables

Variables implemented in java.awt.Component

Variables implemented in javax.swing.JComponent

JdbNavList constructors

JdbNavList 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.JList

JdbNavList 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.JList

JdbNavList event listeners


JdbNavList constructors

JdbNavList()

  public JdbNavList()
Constructs a JdbNavList component by calling the null constructor of its superclass.

JdbNavList(com.borland.dx.dataset.DataSet, java.lang.String)

  public JdbNavList(DataSet dataSet, String columnName)
Constructs a JdbNavList component by calling the null constructor of its superclass and then setting the dataSet and columnName properties of JdbNavList.

Parameters:

dataSet
The DataSet that JdbNavList navigates.
columnName
The name of the column within the specified DataSet that JdbNavList navigates.

JdbNavList properties

columnName

 public String getColumnName()
 public void setColumnName(String columnName)
Returns and sets the column with whose values the JdbNavList is synchronized.

dataSet

 public DataSet getDataSet()
 public void setDataSet(DataSet dataSet)
Returns and sets the DataSet in which navigation occurs.

preferredSize

 public Dimension getPreferredSize()
Returns the preferred size of the JdbNavList.

JdbNavList methods

addNotify()

  public void addNotify()
Calls the addNotify() method of its superclass and opens the DataSet if the dataSet property is not null.

Overrides: com.sun.javax.swing.JComponent.addNotify()


JdbNavList 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 )

listSelection

 public void addListSelectionListener(javax.swing.event.ListSelectionListener )
 public void removeListSelectionListener(javax.swing.event.ListSelectionListener )

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 )

vetoableChange

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