borland Packages  Class Hierarchy  dbswing Package  Index 

JdbList component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----com.sun.java.swing.JComponent
                           +----com.sun.java.swing.JList
                                   +----borland.dbswing.JdbList

About the JdbList component

Variables  Constructors  Properties  Methods  Event Listeners

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

The JdbList is a data-aware extension to the JList component. JdbList displays a list of pick-values for a single field in a DataSet.


JdbList variables

Variables implemented in this class

Variables implemented in com.sun.java.swing.JComponent

Variables implemented in java.awt.Component

JdbList constructors

JdbList properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in com.sun.java.swing.JComponent

Properties implemented in com.sun.java.swing.JList

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

JdbList methods

Methods implemented in this class

Methods implemented in com.sun.java.swing.JComponent

Methods implemented in com.sun.java.swing.JList

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.lang.Object

JdbList event listeners


JdbList variables

columnName

  protected String columnName
Stores the name of the Column component that this component displays data from.

dataSet

  protected DataSet dataSet
Specifies the DataSet object that is the source of the data to display.

pickList

  protected PickListDescriptor pickList
Protected variable representing the PickListDescriptor associated with the DataSet. The PickListDescriptor defines the relationship between this component and a second "picklist" DataSet.

JdbList constructors

JdbList()

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

JdbList(com.sun.java.swing.ListModel)

  public JdbList(com.sun.java.swing.ListModel dataModel)
Constructs a JdbList component by calling the constructor of its superclass that takes a ListModel parameter.

JdbList(java.lang.Object[])

  public JdbList(java.lang.Object[] listData)
Constructs a JdbList component by calling the constructor of its superclass that takes an array of Objects as a parameter.

JdbList(java.util.Vector)

  public JdbList(java.util.Vector listData)
Constructs a JdbList component by calling the constructor of its superclass that takes a Vector object as a parameter.

JdbList properties

columnName

 public String getColumnName()
 public void setColumnName(java.lang.String columnName)
Specifies a Column name in the DataSet object that drives the list's selection.

dataSet

 public DataSet getDataSet()
 public void setDataSet(borland.jbcl.dataset.DataSet dataSet)
Specifies a DataSet object that drives the list's selection.

items

 public synchronized String[] getItems()
 public synchronized void setItems(java.lang.String[] items)
Specifies the list of items to pick from.

preferredSize

 public Dimension getPreferredSize()

JdbList methods

addNotify()

  public void addNotify()
Calls the addNotify() method of its superclass, calculates the size of the list, then opens the associated DataSet (if specified).

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

updateValue()

  public void updateValue()
Populates the list by accessing the pickList property of the associated DataSet.

JdbList event listeners

This component is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events.

ancestor

 public void addAncestorListener(com.sun.java.swing.event.AncestorListener )
 public void removeAncestorListener(com.sun.java.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 void removeContainerListener(java.awt.event.ContainerListener )

focus

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

key

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

listSelection

 public void addListSelectionListener(com.sun.java.swing.event.ListSelectionListener )
 public void removeListSelectionListener(com.sun.java.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 )