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
JdbNavComboBox constructors
JdbNavComboBox properties
*Read-only properties **Write-only properties
Properties implemented in this class
JdbNavComboBox methods
Methods implemented in this class
- action(java.awt.Event, java.lang.Object)
- add(java.awt.PopupMenu)
- addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
- bounds()
- checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- checkImage(java.awt.Image, java.awt.image.ImageObserver)
- coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent)
- contains(java.awt.Point)
- createImage(int, int)
- createImage(java.awt.image.ImageProducer)
- disable()
- disableEvents(long)
- dispatchEvent(java.awt.AWTEvent)
- enable()
- enable(boolean)
- enableEvents(long)
- enableInputMethods(boolean)
- getFontMetrics(java.awt.Font)
- gotFocus(java.awt.Event, java.lang.Object)
- handleEvent(java.awt.Event)
- hide()
- imageUpdate(java.awt.Image, int, int, int, int, int)
- inside(int, int)
- keyDown(java.awt.Event, int)
- keyUp(java.awt.Event, int)
- list()
- list(java.io.PrintStream)
- list(java.io.PrintWriter)
- location()
- lostFocus(java.awt.Event, java.lang.Object)
- mouseDown(java.awt.Event, int, int)
- mouseDrag(java.awt.Event, int, int)
- mouseEnter(java.awt.Event, int, int)
- mouseExit(java.awt.Event, int, int)
- mouseMove(java.awt.Event, int, int)
- mouseUp(java.awt.Event, int, int)
- move(int, int)
- nextFocus()
- paintAll(java.awt.Graphics)
- postEvent(java.awt.Event)
- prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- prepareImage(java.awt.Image, java.awt.image.ImageObserver)
- printAll(java.awt.Graphics)
- processComponentEvent(java.awt.event.ComponentEvent)
- processInputMethodEvent(java.awt.event.InputMethodEvent)
- processMouseEvent(java.awt.event.MouseEvent)
- remove(java.awt.MenuComponent)
- removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)
- repaint()
- repaint(int, int, int, int)
- repaint(long)
- resize(int, int)
- resize(java.awt.Dimension)
- setBounds(int, int, int, int)
- setLocation(int, int)
- setSize(int, int)
- show()
- show(boolean)
- size()
- toString()
- transferFocus()
- add(java.awt.Component)
- add(java.awt.Component, int)
- add(java.awt.Component, java.lang.Object)
- add(java.awt.Component, java.lang.Object, int)
- add(java.lang.String, java.awt.Component)
- addImpl(java.awt.Component, java.lang.Object, int)
- countComponents()
- deliverEvent(java.awt.Event)
- doLayout()
- findComponentAt(int, int)
- findComponentAt(java.awt.Point)
- getComponent(int)
- getComponentAt(int, int)
- getComponentAt(java.awt.Point)
- insets()
- invalidate()
- isAncestorOf(java.awt.Component)
- layout()
- list(java.io.PrintStream, int)
- list(java.io.PrintWriter, int)
- locate(int, int)
- minimumSize()
- paintComponents(java.awt.Graphics)
- preferredSize()
- print(java.awt.Graphics)
- printComponents(java.awt.Graphics)
- processContainerEvent(java.awt.event.ContainerEvent)
- processEvent(java.awt.AWTEvent)
- remove(int)
- remove(java.awt.Component)
- removeAll()
- validate()
- validateTree()
- computeVisibleRect(java.awt.Rectangle)
- contains(int, int)
- createToolTip()
- firePropertyChange(java.lang.String, boolean, boolean)
- firePropertyChange(java.lang.String, byte, byte)
- firePropertyChange(java.lang.String, char, char)
- firePropertyChange(java.lang.String, double, double)
- firePropertyChange(java.lang.String, float, float)
- firePropertyChange(java.lang.String, int, int)
- firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
- firePropertyChange(java.lang.String, long, long)
- firePropertyChange(java.lang.String, short, short)
- fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object)
- getActionForKeyStroke(javax.swing.KeyStroke)
- getBounds(java.awt.Rectangle)
- getClientProperty(java.lang.Object)
- getComponentGraphics(java.awt.Graphics)
- getConditionForKeyStroke(javax.swing.KeyStroke)
- getInsets(java.awt.Insets)
- getLocation(java.awt.Point)
- getSize(java.awt.Dimension)
- getToolTipLocation(java.awt.event.MouseEvent)
- getToolTipText(java.awt.event.MouseEvent)
- grabFocus()
- hasFocus()
- isLightweightComponent(java.awt.Component)
- paint(java.awt.Graphics)
- paintBorder(java.awt.Graphics)
- paintChildren(java.awt.Graphics)
- paintComponent(java.awt.Graphics)
- paintImmediately(int, int, int, int)
- paintImmediately(java.awt.Rectangle)
- processComponentKeyEvent(java.awt.event.KeyEvent)
- processFocusEvent(java.awt.event.FocusEvent)
- processMouseMotionEvent(java.awt.event.MouseEvent)
- putClientProperty(java.lang.Object, java.lang.Object)
- registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)
- registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)
- removeNotify()
- repaint(java.awt.Rectangle)
- repaint(long, int, int, int, int)
- requestDefaultFocus()
- requestFocus()
- resetKeyboardActions()
- reshape(int, int, int, int)
- revalidate()
- scrollRectToVisible(java.awt.Rectangle)
- setUI(javax.swing.plaf.ComponentUI)
- unregisterKeyboardAction(javax.swing.KeyStroke)
- update(java.awt.Graphics)
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 )