borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.control 

LabelControl component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Label
                   +----borland.jbcl.view.LabelView
                           +----borland.jbcl.control.LabelControl

About the LabelControl component

Variables  Constructors  Properties  Methods  Event Listeners

Implements AccessListener, DataChangeListener, NavigationListener, SingletonModelListener, SingletonView, MenuContainer, ImageObserver, Serializable, EventListener

The LabelControl displays a single static line of text and is similar to java.awt.Label, but has properties that allow it to connect to display values from a DataSet. If both the dataSet and columnName properties are set, the LabelControl displays the data value for that column in the current row.

The LabelControl differs from the StatusBar in that the LabelControl displays a value in the DataSet and the StatusBar displays status messages generated by the DataSet.


LabelControl variables

Variables implemented in java.awt.Component

Variables implemented in java.awt.Label

LabelControl constructors

LabelControl properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.view.LabelView

Properties implemented in java.awt.Component

Properties implemented in java.awt.Label

Properties implemented in java.lang.Object

LabelControl methods

Methods implemented in this class

Methods implemented in borland.jbcl.view.LabelView

Methods implemented in java.awt.Component

Methods implemented in java.awt.Label

Methods implemented in java.lang.Object

LabelControl event listeners


LabelControl constructors

LabelControl()

  public LabelControl()
Constructs a LabelControl component with default property values.

LabelControl(java.lang.String)

  public LabelControl(java.lang.String text)
Constructs a LabelControl component with the specified label text.

Parameters:

text
Label text.

LabelControl properties

columnName

 public String getColumnName()
 public void setColumnName(java.lang.String newColumnName)
Specifies the name of a Column object in the DataSet object specified by the dataSet property. This column is used to fill the label.

dataSet

 public DataSet getDataSet()
 public void setDataSet(borland.jbcl.dataset.DataSet newDataSet)
Specifies a DataSet object to display data from in the label.


LabelControl methods

addNotify()

  public void addNotify()

Hook to open the DataSet supplying this label control when the Label is displayed, if the DataSet's autoOpen property is set.

Calls java.awt.Label.html#addNotify() to create the Label's peer. Initializes the label if it not already initialized.

Overrides: java.awt.Label.addNotify()


LabelControl event listeners

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

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener l)
 public synchronized void removeComponentListener(java.awt.event.ComponentListener l)

focus

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

key

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

model

 public void addModelListener(borland.jbcl.model.SingletonModelListener l)
 public void removeModelListener(borland.jbcl.model.SingletonModelListener l)

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener l)
 public synchronized void removeMouseListener(java.awt.event.MouseListener l)

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)