borland Packages  Class Hierarchy  dbswing Package  Index 

dbListModel class

java.lang.Object
   +----com.sun.java.swing.AbstractListModel
           +----borland.dbswing.dbListModel
                   +----borland.dbswing.dbNavComboBoxModel

About the dbListModel class

Variables  Constructors  Properties  Methods  Event Listeners

Implements DataChangeListener, ListModel, Serializable, EventListener

The dbListModel component is an instantiable subclass of java.swing.AbstractListModel. The contents of this list component are provided from a data model implementation. Properties of dataSet and columnName supply the necessary information to connect this component to a JBCL DataSet-based data source.


dbListModel variables

Variables implemented in this class

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

dbListModel constructors

dbListModel properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

dbListModel methods

Methods implemented in this class

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

Methods implemented in java.lang.Object

dbListModel event listeners


dbListModel variables

columnName

  protected String columnName
Protected variable of the String name of the Column component that supplies the content of this list component.

component

  protected Component component
Protected variable representing this component.

dataSet

  protected DataSet dataSet
Protected variable representing the DataSet from which the list's contents are obtained.

value

  protected Variant value
Protected variable that stores the value selected from the list.

dbListModel constructors

dbListModel(borland.jbcl.dataset.DataSet, java.lang.String, java.awt.Component)

  public dbListModel(borland.jbcl.dataset.DataSet dataSet, java.lang.String columnName, java.awt.Component component)
Constructs a dbListModel with the following properties:
dataSet
The DataSet from which the list's contents are obtained.
columnName
The String name of the Column component of the dataSet that supplies the contents of this list component.

dbListModel properties

size

 public int getSize()
Returns the row count of the DataSet and therefore, the size of the dbListModel component. On error this method returns 0.

dbListModel event listeners

This class is a source for the following event sets.

listData

 public void addListDataListener(com.sun.java.swing.event.ListDataListener )
 public void removeListDataListener(com.sun.java.swing.event.ListDataListener )