|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
org.bff.javampd.events.PlayerChangeEvent
public class PlayerChangeEvent
Represents a change in the status of a MPD music player.
| Field Summary | |
|---|---|
static int |
PLAYER_MUTED
the volume was muted |
static int |
PLAYER_NEXT
the player requesting the next song in the playlist |
static int |
PLAYER_PAUSED
the player was paused |
static int |
PLAYER_PREVIOUS
the player requesting the previous song in the playlist |
static int |
PLAYER_SEEKING
the player is seeking within a song |
static int |
PLAYER_SONG_SET
a specific song was requested by the player |
static int |
PLAYER_STARTED
the player was started |
static int |
PLAYER_STOPPED
the player was stopped |
static int |
PLAYER_UNMUTED
the volume was unmuted |
static int |
PLAYER_UNPAUSED
the player was taken off pause |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
PlayerChangeEvent(java.lang.Object source,
int id)
Creates a new instance of PlayerChangeEvent |
|
PlayerChangeEvent(java.lang.Object source,
int id,
java.lang.String msg)
Creates a new instance of PlayerChangeEvent |
|
| Method Summary | |
|---|---|
int |
getId()
Returns specific id of the event that occurred. |
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 |
| Field Detail |
|---|
public static final int PLAYER_STOPPED
public static final int PLAYER_STARTED
public static final int PLAYER_PAUSED
public static final int PLAYER_NEXT
public static final int PLAYER_PREVIOUS
public static final int PLAYER_MUTED
public static final int PLAYER_UNMUTED
public static final int PLAYER_SONG_SET
public static final int PLAYER_UNPAUSED
public static final int PLAYER_SEEKING
| Constructor Detail |
|---|
public PlayerChangeEvent(java.lang.Object source,
int id)
source - the object on which the Event initially occurredid - the specific event that occurred
public PlayerChangeEvent(java.lang.Object source,
int id,
java.lang.String msg)
source - the object on which the Event initially occurredid - the specific event that occurredmsg - an optional message| Method Detail |
|---|
public int getId()
public java.lang.String getMsg()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||