borland Packages Class Hierarchy jbcl.control Package Index
StatusBar component
java.lang.Object
+----java.awt.Component
+----java.awt.Container
+----com.sun.java.swing.JComponent
+----borland.jbcl.view.BeanPanel
+----borland.jbcl.control.BevelPanel
+----borland.jbcl.control.StatusBar
About the StatusBar component
Variables Constructors Properties Methods Event Listeners
Implements AccessListener, DataSetAware, NavigationListener, StatusListener, BlackBox, ImageObserver, MenuContainer, Serializable, EventListener
The StatusBar control displays custom messages. If
its dataset property is set, it displays status messages
generated by its associated DataSet. Status messages
generated from the DataSet include:
- Row position
- Row count
- Validation errors
- Data update notifications
- Locate messages
To display a custom message on the status bar, set the text
property.
To modify the appearance of the status bar, use such
properties as font, alignment, and color.
The StatusBar control differs from the LabelControl
in that the LabelControl displays the data from a
particular row and column of the DataSet and the StatusBar
displays status messages generated by the DataSet, but
not its data.
StatusBar variables
Variables implemented in this class
StatusBar constructors
StatusBar properties
*Read-only properties **Write-only properties
Properties implemented in this class
StatusBar methods
Methods implemented in this class
- computeVisibleRect(java.awt.Rectangle)
- contains(int, int)
- createToolTip()
- firePropertyChange(java.lang.String, boolean, boolean)
- firePropertyChange(java.lang.String, byte, byte)
- firePropertyChange(java.lang.String, char, char)
- firePropertyChange(java.lang.String, double, double)
- firePropertyChange(java.lang.String, float, float)
- firePropertyChange(java.lang.String, int, int)
- firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
- firePropertyChange(java.lang.String, long, long)
- firePropertyChange(java.lang.String, short, short)
- fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object)
- getActionForKeyStroke(com.sun.java.swing.KeyStroke)
- getBounds(java.awt.Rectangle)
- getClientProperty(java.lang.Object)
- getComponentGraphics(java.awt.Graphics)
- getConditionForKeyStroke(com.sun.java.swing.KeyStroke)
- getLocation(java.awt.Point)
- getSize(java.awt.Dimension)
- getToolTipLocation(java.awt.event.MouseEvent)
- getToolTipText(java.awt.event.MouseEvent)
- grabFocus()
- hasFocus()
- isLightweightComponent(java.awt.Component)
- paint(java.awt.Graphics)
- paintBorder(java.awt.Graphics)
- paintChildren(java.awt.Graphics)
- paintImmediately(int, int, int, int)
- paintImmediately(java.awt.Rectangle)
- processComponentKeyEvent(java.awt.event.KeyEvent)
- putClientProperty(java.lang.Object, java.lang.Object)
- registerKeyboardAction(java.awt.event.ActionListener, com.sun.java.swing.KeyStroke, int)
- registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, com.sun.java.swing.KeyStroke, int)
- repaint(java.awt.Rectangle)
- repaint(long, int, int, int, int)
- requestDefaultFocus()
- requestFocus()
- resetKeyboardActions()
- reshape(int, int, int, int)
- revalidate()
- scrollRectToVisible(java.awt.Rectangle)
- setUI(com.sun.java.swing.plaf.ComponentUI)
- unregisterKeyboardAction(com.sun.java.swing.KeyStroke)
- update(java.awt.Graphics)
- action(java.awt.Event, java.lang.Object)
- add(java.awt.PopupMenu)
- bounds()
- checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- checkImage(java.awt.Image, java.awt.image.ImageObserver)
- contains(java.awt.Point)
- createImage(int, int)
- createImage(java.awt.image.ImageProducer)
- disable()
- disableEvents(long)
- dispatchEvent(java.awt.AWTEvent)
- enable()
- enable(boolean)
- enableEvents(long)
- getFontMetrics(java.awt.Font)
- gotFocus(java.awt.Event, java.lang.Object)
- handleEvent(java.awt.Event)
- hide()
- imageUpdate(java.awt.Image, int, int, int, int, int)
- inside(int, int)
- keyDown(java.awt.Event, int)
- keyUp(java.awt.Event, int)
- list()
- list(java.io.PrintStream)
- list(java.io.PrintWriter)
- location()
- lostFocus(java.awt.Event, java.lang.Object)
- mouseDown(java.awt.Event, int, int)
- mouseDrag(java.awt.Event, int, int)
- mouseEnter(java.awt.Event, int, int)
- mouseExit(java.awt.Event, int, int)
- mouseMove(java.awt.Event, int, int)
- mouseUp(java.awt.Event, int, int)
- move(int, int)
- nextFocus()
- paintAll(java.awt.Graphics)
- postEvent(java.awt.Event)
- prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- prepareImage(java.awt.Image, java.awt.image.ImageObserver)
- printAll(java.awt.Graphics)
- processComponentEvent(java.awt.event.ComponentEvent)
- remove(java.awt.MenuComponent)
- repaint()
- repaint(int, int, int, int)
- repaint(long)
- resize(int, int)
- resize(java.awt.Dimension)
- setBounds(int, int, int, int)
- setLocation(int, int)
- setSize(int, int)
- show()
- show(boolean)
- size()
- transferFocus()
- add(java.awt.Component)
- add(java.awt.Component, int)
- add(java.awt.Component, java.lang.Object)
- add(java.awt.Component, java.lang.Object, int)
- add(java.lang.String, java.awt.Component)
- addImpl(java.awt.Component, java.lang.Object, int)
- countComponents()
- deliverEvent(java.awt.Event)
- doLayout()
- getComponent(int)
- getComponentAt(int, int)
- getComponentAt(java.awt.Point)
- insets()
- invalidate()
- isAncestorOf(java.awt.Component)
- layout()
- list(java.io.PrintStream, int)
- list(java.io.PrintWriter, int)
- locate(int, int)
- minimumSize()
- paintComponents(java.awt.Graphics)
- paramString()
- preferredSize()
- print(java.awt.Graphics)
- printComponents(java.awt.Graphics)
- processContainerEvent(java.awt.event.ContainerEvent)
- remove(int)
- remove(java.awt.Component)
- removeAll()
- validate()
- validateTree()
StatusBar event listeners
StatusBar variables
dataSet
protected DataSet dataSet
Protected variable that specifies the DataSet object
associated with the StatusBar control. Use accessor
methods for the dataSet property to access this
variable.
label
protected TextControl label
Protected variable that returns the java.awt.Label
contained in StatusBar control.
StatusBar constructors
StatusBar()
public StatusBar()
Creates a StatusBar component with default
properties.
StatusBar properties
alignment
public int getAlignment()
public void setAlignment(int alignment)
Stores the current alignment of the StatusBar. Valid
values for int are defined in Alignment
variables. If an invalid alignment value is specified, the setAlignment()
method throws an IllegalArgumentException.
dataSet
public DataSet getDataSet()
public void setDataSet(borland.jbcl.dataset.DataSet newDataSet)
Specifies the DataSet
object whose status messages display in the StatusBar
control.
preferredSize
public Dimension getPreferredSize()
Stores the preferred dimensions that are used when drawing the
StatusBar.
text
public String getText()
public void setText(java.lang.String text)
Stores the text that displays in the java.awt.Label
of the StatusBar component. Use this property to display
custom text in the StatusBar. This text is overwritten
with the next setText call or, when the next status
message is generated by the associated DataSet (if the dataset
property of the StatusBar is set).
StatusBar methods
addNotify()
public void addNotify()
Overrides: java.awt.Panel.addNotify()
toString()
public String toString()
Returns the string value of the java.awt.Label
contained in the StatusBar component.
Overrides: java.awt.Component.toString()
updateValue()
protected void updateValue()
Protected method that retrieves the value in the DataSet
and updates the StatusBar by calling the setText() method.
StatusBar event listeners
This component is a source for the following event sets.
For information on the standard AWT event sets, see Standard Java events.
action
public synchronized void addActionListener(java.awt.event.ActionListener l)
public synchronized void removeActionListener(java.awt.event.ActionListener l)
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 void addMouseListener(java.awt.event.MouseListener l)
public void removeMouseListener(java.awt.event.MouseListener l)
mouseMotion
public void addMouseMotionListener(java.awt.event.MouseMotionListener l)
public void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
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 )