borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.dataset 

StatusListener interface

java.util.EventListener
   +----borland.jbcl.dataset.StatusListener

About the StatusListener interface

Methods  

Implemented by StatusBar, DataSet, DataSetView, HelpDataSet, ProcedureDataSet, QueryDataSet, StorageDataSet, TableDataSet

This class is used as a mechanism by which a status bar gets its information from a DataSet. This is your chance to change the message that is being sent from the data set to the status bar.

To use the StatusListener,

  1. Place a status bar component in your application.

  2. Set the dataSet property of the status bar to the data set whose status you want to display.

    Now the data set will send information to the status bar.

  3. Code a StatusListener to control the messages being sent to the status bar.

You might use the StatusListener to show how many rows have been loaded in the data set, for example. Also, when the LocatorControl prompts the user, it is through the StatusListener.


StatusListener methods

Methods defined in this interface


StatusListener methods

statusMessage(borland.jbcl.dataset.StatusEvent)

  public void statusMessage(borland.jbcl.dataset.StatusEvent event)

Called when a message is being sent to the status bar and other status listeners.

Parameters:

event
The event that prompted the message to be sent.