Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.fluidsynth.api
Class Status  view Status download Status.java

java.lang.Object
  extended byorg.fluidsynth.api.Status
All Implemented Interfaces:
java.io.Serializable

public class Status
extends java.lang.Object
implements java.io.Serializable

Manger of status messages displayed in progress bars, and the status panel. The only instance of this class listens to INFO level log messages from Log, formats these messages, broadcasts the formatted messages via property change events, and maintains a record of the last message sent (see getStatus() 55 ). Status messages can be generated by any object in the system using Log.info() 55 .


Field Summary
private static Status me
           
static java.lang.String PROP_STATUS
          Property name of the status property.
private  java.beans.PropertyChangeSupport propertySupport
           
private  java.lang.String status
           
 
Constructor Summary
private Status()
          Create a Status instance.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Add a property change listener.
 java.lang.String getStatus()
          Get the current status.
static Status onlyInstance()
          Return the singleon instance of this class.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Remove a property change listener.
private  void setStatus(java.lang.String value)
          Set the current status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_STATUS

public static final java.lang.String PROP_STATUS
Property name of the status property.

See Also:
Constant Field Values

status

private java.lang.String status

propertySupport

private java.beans.PropertyChangeSupport propertySupport

me

private static Status me
Constructor Detail

Status

private Status()
Create a Status instance.

Method Detail

onlyInstance

public static Status onlyInstance()
Return the singleon instance of this class.


getStatus

public java.lang.String getStatus()
Get the current status.


setStatus

private void setStatus(java.lang.String value)
Set the current status. Property change listeners are notified of the change.


addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener.


removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a property change listener.