com.objectwave.event
Class StatusManager

java.lang.Object
  |
  +--com.objectwave.event.StatusManager
Direct Known Subclasses:
AsynchStatusManager

public class StatusManager
extends java.lang.Object

Intended to be used as a generic shared event dispatcher.

Version:
$Id: StatusManager.java,v 2.0 2001/06/11 15:46:53 dave_hoag Exp $
Author:
dhoag

Nested Class Summary
static class StatusManager.Test
           
 
Constructor Summary
StatusManager()
           
 
Method Summary
 void addStatusEventListener(StatusEventListener l)
           
 void fireStatusEvent(java.lang.Object source, java.lang.String text)
          Convience method to fire an informational status event.
 void fireStatusEvent(StatusEvent evt)
           
static void fireStatusEvent(java.lang.String text)
          The MOST convient method in the bunch.
static StatusManager getDefaultManager()
          Gets the DefaultManager attribute of the StatusManager class
 void removeStatusEventListener(StatusEventListener l)
          Description of the Method
static void setDefaultManager(StatusManager gr)
          Sets the DefaultManager attribute of the StatusManager class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusManager

public StatusManager()
Method Detail

addStatusEventListener

public void addStatusEventListener(StatusEventListener l)
Parameters:
l - The feature to be added to the StatusEventListener attribute

fireStatusEvent

public void fireStatusEvent(StatusEvent evt)
Parameters:
evt - Description of Parameter

fireStatusEvent

public void fireStatusEvent(java.lang.Object source,
                            java.lang.String text)
Convience method to fire an informational status event.

Parameters:
source - Description of Parameter
text - Description of Parameter

removeStatusEventListener

public void removeStatusEventListener(StatusEventListener l)
Description of the Method

Parameters:
l - Description of Parameter

setDefaultManager

public static void setDefaultManager(StatusManager gr)
Sets the DefaultManager attribute of the StatusManager class

Parameters:
gr - The new DefaultManager value

getDefaultManager

public static StatusManager getDefaultManager()
Gets the DefaultManager attribute of the StatusManager class

Returns:
The DefaultManager value

fireStatusEvent

public static void fireStatusEvent(java.lang.String text)
The MOST convient method in the bunch.

Parameters:
text - Description of Parameter