org.bff.javampd.events
Class VolumeChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.bff.javampd.events.VolumeChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class VolumeChangeEvent
extends java.util.EventObject

Represents a change in the volume of a MPD player.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
VolumeChangeEvent(java.lang.Object source, int volume)
          Creates a new instance of MusicPlayerStatusChangedEvent
VolumeChangeEvent(java.lang.Object source, int volume, java.lang.String msg)
          Creates a new instance of MusicPlayerStatusChangedEvent
 
Method Summary
 java.lang.String getMsg()
          Returns the message attached to this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VolumeChangeEvent

public VolumeChangeEvent(java.lang.Object source,
                         int volume)
Creates a new instance of MusicPlayerStatusChangedEvent

Parameters:
source - the object on which the Event initially occurred
volume - the new volume

VolumeChangeEvent

public VolumeChangeEvent(java.lang.Object source,
                         int volume,
                         java.lang.String msg)
Creates a new instance of MusicPlayerStatusChangedEvent

Parameters:
source - the object on which the Event initially occurred
volume - the new volume
msg - an optional message
Method Detail

getMsg

public java.lang.String getMsg()
Returns the message attached to this event. If there is no message null is returned.

Returns:
the optional message