borland Packages Class Hierarchy jbcl.control Package Index
java.lang.Object +----java.awt.Component +----java.awt.Label +----borland.jbcl.view.LabelView +----borland.jbcl.control.LabelControl
Variables Constructors Properties Methods Event Listeners
Implements AccessListener, ColumnAware, DataChangeListener, DataSetAware, NavigationListener, 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(java.lang.String text)
Constructs a LabelControl component with the specified label text.
Parameters:
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.
public DataSet getDataSet() public void setDataSet(borland.jbcl.dataset.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 addKeyListener(java.awt.event.KeyListener ) public synchronized void removeKeyListener(java.awt.event.KeyListener )
public void addModelListener(borland.jbcl.model.SingletonModelListener l) public void removeModelListener(borland.jbcl.model.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 )