borland Packages  Class Hierarchy  dbswing Package  Index 

JdbLabel component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----com.sun.java.swing.JComponent
                           +----com.sun.java.swing.JLabel
                                   +----borland.dbswing.JdbLabel

About the JdbLabel component

Variables  Constructors  Properties  Methods  Event Listeners

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

The JdbLabel component extends the java.swing.JLabel class, allowing it to be connected to a JBuilder DataSet through dataSet and columnName properties.


JdbLabel variables

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

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

Variables implemented in java.awt.Component

JdbLabel constructors

JdbLabel 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.JLabel

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

JdbLabel methods

Methods implemented in this class

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

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

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.lang.Object

JdbLabel event listeners


JdbLabel constructors

JdbLabel()

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

JdbLabel(com.sun.java.swing.Icon)

  public JdbLabel(com.sun.java.swing.Icon image)
Constructs a JdbLabel component that displays the icon specified in its parameter by calling the constructor of its superclass that takes an Icon as its parameter.

JdbLabel(com.sun.java.swing.Icon, int)

  public JdbLabel(com.sun.java.swing.Icon image, int horizontalAlignment)
Constructs a JdbLabel component that displays an icon with the alignment as specified in its parameters by calling the constructor of its superclass that takes these parameters.

JdbLabel(java.lang.String)

  public JdbLabel(java.lang.String text)
Constructs a JdbLabel component that displays the specified text by calling the constructor of its superclass that takes the String text as its parameter.

JdbLabel(java.lang.String, com.sun.java.swing.Icon, int)

  public JdbLabel(java.lang.String text, com.sun.java.swing.Icon icon, int horizontalAlignment)
Constructs a JdbLabel component that displays the text and icon values using the specified alignment by calling the constructor of its superclass that takes these values as parameters.

JdbLabel(java.lang.String, int)

  public JdbLabel(java.lang.String text, int horizontalAlignment)
Constructs a JdbLabel component that displays the specified text using the specified alignment, by calling the constructor of its superclass that takes both values as parameters.

JdbLabel properties

columnName

 public String getColumnName()
 public void setColumnName(java.lang.String newColumnName)
Stores the name of the Column component this component displays data from.

dataSet

 public DataSet getDataSet()
 public void setDataSet(borland.jbcl.dataset.DataSet newDataSet)
Specifies the DataSet object that is the source of the data to display.

JdbLabel methods

addNotify()

  public void addNotify()
Calls the addNotify() method of its superclass then opens the associated DataSet if the columnName and dataSet properties are set to valid values.

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

updateText()

  protected void updateText()
Protected method that updates the text displayed in this component. This method uses formatting directives defined in the formatter property of the Column.

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

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 )