All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.webrunner.bab.StatusBar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JPanel
                                   |
                                   +----com.ibm.webrunner.bab.StatusBar

public class StatusBar
extends JPanel
implements Serializable
This is basically a JPanel with a message area. The status messages can be using this statusbar. The messages are stacked so that statusbar can be reverted to previously set message. The statusbar requires a message display component, basically a JLabel to display the messages. The statusbar can be customized to contain other components if need be. If no message display component is set by the user, the statusbar adds a JLabel to the center of the JPanel and this is used for displaying the messages.

Modification(s) History :
09/18/98 - created

Version:
0.1

Constructor Index

 o StatusBar()
Default constructor

Method Index

 o clearStatusMessages()
Clear all the status messages
 o getMessageLabel()
Return the Message area where the status messages are displayed
 o getStatusMessage()
Return status message
 o setMessageLabel(JLabel)
Set the Message area where the status messages are displayed
 o setStatusMessage(String)
Set the status message.
 o unsetStatusMessage()
Display the previously set status message.

Constructors

 o StatusBar
 public StatusBar()
Default constructor

Methods

 o setStatusMessage
 public void setStatusMessage(String message)
Set the status message.

 o getStatusMessage
 public String getStatusMessage()
Return status message

 o unsetStatusMessage
 public void unsetStatusMessage()
Display the previously set status message.

 o clearStatusMessages
 public void clearStatusMessages()
Clear all the status messages

 o getMessageLabel
 public JLabel getMessageLabel()
Return the Message area where the status messages are displayed

 o setMessageLabel
 public void setMessageLabel(JLabel newMessageLabel)
Set the Message area where the status messages are displayed


All Packages  Class Hierarchy  This Package  Previous  Next  Index