jbcl.control Package
java.lang.Object +----java.awt.Component +----java.awt.Label +----com.borland.jbcl.view.LabelView +----com.borland.jbcl.control.LabelControl
Variables Constructors Properties Methods Event Listeners
Implements AccessListener, ColumnAware, DataChangeListener, DataSetAware, SingletonModelListener, SingletonModelView, ImageObserver, MenuContainer, 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 text property contains the string displayed in the
control. If the readOnly
property is true,
the text cannot be modified. These properties and others are
inherited from LabelView
,
which LabelControl
extends.
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
.
public LabelControl()
Constructs a LabelControl
component with default
property values.
public LabelControl(String text)
Constructs a LabelControl
component with the
specified label text.
Parameters:
text
public String getColumnName() public void setColumnName(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.
public DataSet getDataSet() public void setDataSet(DataSet newDataSet)
Specifies a DataSet
object to display data from in
the label.
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.addNotify()
to create the Label
's peer. Initializes the label if it
not already initialized.
Overrides: java.awt.Label.addNotify()
public synchronized void addComponentListener(java.awt.event.ComponentListener ) public synchronized void removeComponentListener(java.awt.event.ComponentListener )
public synchronized void addFocusListener(java.awt.event.FocusListener ) public synchronized void removeFocusListener(java.awt.event.FocusListener )
public synchronized void addInputMethodListener(java.awt.event.InputMethodListener ) public synchronized void removeInputMethodListener(java.awt.event.InputMethodListener )
public synchronized void addKeyListener(java.awt.event.KeyListener ) public synchronized void removeKeyListener(java.awt.event.KeyListener )
public void addModelListener(SingletonModelListener l) public void removeModelListener(SingletonModelListener l)
public synchronized void addMouseListener(java.awt.event.MouseListener ) public synchronized void removeMouseListener(java.awt.event.MouseListener )
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener ) public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )
public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener ) public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )