org.bff.javampd.events
Class PlayerBasicChangeEvent

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

public class PlayerBasicChangeEvent
extends java.util.EventObject

Represents a change in the status of a music player.

See Also:
Serialized Form

Field Summary
static int PLAYER_BITRATE_CHANGE
          the players instantaneous bitrate changed
static int PLAYER_PAUSED
          the player was paused
static int PLAYER_STARTED
          the player was started
static int PLAYER_STOPPED
          the player was stopped
static int PLAYER_UNPAUSED
          the player was taken off pause
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PlayerBasicChangeEvent(java.lang.Object source, int id)
          Creates a new instance of PlayerBasicChangeEvent
PlayerBasicChangeEvent(java.lang.Object source, int id, java.lang.String msg)
          Creates a new instance of PlayerBasicChangeEvent
 
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

PLAYER_STOPPED

public static final int PLAYER_STOPPED
the player was stopped

See Also:
Constant Field Values

PLAYER_STARTED

public static final int PLAYER_STARTED
the player was started

See Also:
Constant Field Values

PLAYER_PAUSED

public static final int PLAYER_PAUSED
the player was paused

See Also:
Constant Field Values

PLAYER_UNPAUSED

public static final int PLAYER_UNPAUSED
the player was taken off pause

See Also:
Constant Field Values

PLAYER_BITRATE_CHANGE

public static final int PLAYER_BITRATE_CHANGE
the players instantaneous bitrate changed

See Also:
Constant Field Values
Constructor Detail

PlayerBasicChangeEvent

public PlayerBasicChangeEvent(java.lang.Object source,
                              int id)
Creates a new instance of PlayerBasicChangeEvent

Parameters:
source - the object on which the Event initially occurred
id - the specific event that occurred

PlayerBasicChangeEvent

public PlayerBasicChangeEvent(java.lang.Object source,
                              int id,
                              java.lang.String msg)
Creates a new instance of PlayerBasicChangeEvent

Parameters:
source - the object on which the Event initially occurred
id - the specific event that occurred
msg - an optional message
Method Detail

getId

public int getId()
Returns specific id of the event that occurred. The ids are public static fields in the class.

Returns:
the specific id

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