org.bff.javampd.events
Class VolumeChangeEvent
java.lang.Object
java.util.EventObject
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
| 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 |
VolumeChangeEvent
public VolumeChangeEvent(java.lang.Object source,
int volume)
- Creates a new instance of MusicPlayerStatusChangedEvent
- Parameters:
source - the object on which the Event initially occurredvolume - 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 occurredvolume - the new volumemsg - an optional message
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