borland Packages  Class Hierarchy  dbswing Package 

JdbNavComboBox component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----javax.swing.JComponent
                           +----javax.swing.JComboBox
                                   +----com.borland.dbswing.JdbNavComboBox

About the JdbNavComboBox component

Variables  Constructors  Properties  Methods  Event Listeners

Implements AccessListener, ColumnAware, DataSetAware, ActionListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, ListDataListener

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

The JdbNavComboBox component extends the JComboBox class, allowing it to connect to, and navigate a DataSet through dataSet and columnName properties. When you select an item from the JdbNavComboBox, it moves the pointer in the DataSet to the corresponding row. Any updates made to the items displayed in the JdbNavComboBox are ignored.

Unlike JdbComboBox, JdbNavComboBox does not fill its list from a picklist defined on the column it is bound to. Its list comes directly from the column it is bound to, and always displays just a single column.

JdbNavComboBox usually works best when its DataSet is filtered and sorted so that values in the Column it is bound to are unique and ordered.

If there are duplicate values in a JdbNavComboBox, selection from the drop-down list will navigate the DataSet to the corresponding row. If you type into the selected text area of an editable JdbNavComboBox, you will always navigate to the first matching row.

See also: JdbComboBox


JdbNavComboBox variables

Variables implemented in java.awt.Component

Variables implemented in javax.swing.JComboBox

Variables implemented in javax.swing.JComponent

JdbNavComboBox constructors

JdbNavComboBox 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.JComboBox

Properties implemented in javax.swing.JComponent

JdbNavComboBox 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.JComboBox

Methods implemented in javax.swing.JComponent

JdbNavComboBox event listeners


JdbNavComboBox constructors

JdbNavComboBox()

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

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

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

Parameters:

dataSet
The DataSet in which navigation occurs.
columnName
The name of the Column of the DataSet in which navigation occurs.

JdbNavComboBox properties

columnName

 public String getColumnName()
 public void setColumnName(String columnName)
Returns and sets the name of the Column of the DataSet in which the navigation occurs.

dataSet

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

dropDownWidth

 public int getDropDownWidth()
 public void setDropDownWidth(int dropDownWidth)
Returns and sets the desired width of the combobox's drop-down list. If this property is left as its default value (-1), the drop-down list is the same width as the combo box.

fixedCellHeight

 public int getFixedCellHeight()
 public void setFixedCellHeight(int cellHeight)
Returns and sets the fixed height for cells in the combo box's drop-down list. JdbComboBox automatically sets this value appropriately when displaying String data in its drop-down list. To allow non-String data of variable heights in the combo box, keep the default value of -1.

selectedIndex

 public int getSelectedIndex()
 public void setSelectedIndex(int selectedIndex)
Returns and sets the index value of the selected item in the combo box.

JdbNavComboBox 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()

updateUI()

  public void updateUI()
Updates the UI of the combo box.

Overrides: javax.swing.JComboBox.updateUI()


JdbNavComboBox event listeners

This component is a source for the following event sets.

action

 public void addActionListener(java.awt.event.ActionListener )
 public void removeActionListener(java.awt.event.ActionListener )

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 )

item

 public void addItemListener(java.awt.event.ItemListener )
 public void removeItemListener(java.awt.event.ItemListener )

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 )

vetoableChange

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