org.vizzini.util.event
Class StatusManager

java.lang.Object
  extended by org.vizzini.util.event.AbstractManager
      extended by org.vizzini.util.event.StatusManager

public class StatusManager
extends AbstractManager

Provides a manager of status listeners and convenience methods for creating status events.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson

Constructor Summary
StatusManager()
           
 
Method Summary
 void addStatusListener(IStatusListener listener)
          Add the given listener.
protected  void fireChange(IListener listener0, IEvent event0)
          Fire the given event to the given listener.
 void fireStatusChange(int position, String message)
          Fire a status event.
 void fireStatusChange(int position, String message, int displayTime)
          Fire a status event.
 void fireStatusChange(StatusEvent event)
          Fire the given state event to all registered listeners.
 void fireStatusChange(String message)
          Fire a status event.
 void fireStatusChange(String message, int displayTime)
          Fire a status event.
 void removeStatusListener(IStatusListener listener)
          Remove the given listener.
 
Methods inherited from class org.vizzini.util.event.AbstractManager
addListener, fireChange, isFiringChanges, removeListener, setFiringChanges
 
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

addStatusListener

public void addStatusListener(IStatusListener listener)
Add the given listener.

Since:
v0.1

fireStatusChange

public void fireStatusChange(String message)
Fire a status event.

Parameters:
message - Status message.
Since:
v0.1

fireStatusChange

public void fireStatusChange(String message,
                             int displayTime)
Fire a status event.

Parameters:
message - Status message.
displayTime - Time for which to display the message.
Since:
v0.1

fireStatusChange

public void fireStatusChange(int position,
                             String message)
Fire a status event.

Parameters:
position - Status position.
message - Status message.
Since:
v0.1

fireStatusChange

public void fireStatusChange(int position,
                             String message,
                             int displayTime)
Fire a status event.

Parameters:
position - Status position.
message - Status message.
displayTime - Time for which to display the message.
Since:
v0.1

fireStatusChange

public void fireStatusChange(StatusEvent event)
Fire the given state event to all registered listeners.

Since:
v0.1

removeStatusListener

public void removeStatusListener(IStatusListener listener)
Remove the given listener.

Since:
v0.1

fireChange

protected void fireChange(IListener listener0,
                          IEvent event0)
Fire the given event to the given listener.

Specified by:
fireChange in class AbstractManager
Since:
v0.2


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02