org.jivesoftware.spark
Class AlertManager

java.lang.Object
  extended by org.jivesoftware.spark.AlertManager

public class AlertManager
extends java.lang.Object

The AlertManager handles the delegation of Alerting based.

Author:
Derek DeMoro

Constructor Summary
AlertManager()
           
 
Method Summary
 void addAlert(Alerter alerter)
          Adds an alert.
 void flashWindow(java.awt.Window window)
          Flash the given window.
 void flashWindowStopOnFocus(java.awt.Window window)
          Flash the given window, but stop flashing when the window takes focus.
 void removeAlert(Alerter alerter)
          Removes an alerter.
 void stopFlashing(java.awt.Window window)
          Stop the flashing of the window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertManager

public AlertManager()
Method Detail

addAlert

public void addAlert(Alerter alerter)
Adds an alert.

Parameters:
alerter - the Alerter to add.

removeAlert

public void removeAlert(Alerter alerter)
Removes an alerter.

Parameters:
alerter - the alerter to remove.

flashWindow

public void flashWindow(java.awt.Window window)
Flash the given window.

Parameters:
window - the window to flash.

flashWindowStopOnFocus

public void flashWindowStopOnFocus(java.awt.Window window)
Flash the given window, but stop flashing when the window takes focus.

Parameters:
window - the window to start flashing.

stopFlashing

public void stopFlashing(java.awt.Window window)
Stop the flashing of the window.

Parameters:
window - the window to stop flashing.