org.bff.javampd.events
Class PlaylistChangeEvent

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

public class PlaylistChangeEvent
extends java.util.EventObject

Represents a change in the status of a MPD playlist.

See Also:
Serialized Form

Field Summary
static int PLAYLIST_ADDED
          a playlist was appended to this playlist
static int PLAYLIST_CHANGED
          the playlist version was changed
static int PLAYLIST_CLEARED
          the playlist was cleared
static int PLAYLIST_DELETED
          the playlist was deleted
static int PLAYLIST_LOADED
          the playlist was loaded
static int PLAYLIST_SAVED
          the playlist was changed
static int SONG_ADDED
          a song was added
static int SONG_DELETED
          a song was deleted
static int SONG_SELECTED
          a specific song was selected
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PlaylistChangeEvent(java.lang.Object source, int id)
          Creates a new instance of PlayListChangeEvent
PlaylistChangeEvent(java.lang.Object source, int id, java.lang.String msg)
          Creates a new instance of PlayListChangeEvent
 
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

SONG_ADDED

public static final int SONG_ADDED
a song was added

See Also:
Constant Field Values

SONG_DELETED

public static final int SONG_DELETED
a song was deleted

See Also:
Constant Field Values

SONG_SELECTED

public static final int SONG_SELECTED
a specific song was selected

See Also:
Constant Field Values

PLAYLIST_ADDED

public static final int PLAYLIST_ADDED
a playlist was appended to this playlist

See Also:
Constant Field Values

PLAYLIST_CHANGED

public static final int PLAYLIST_CHANGED
the playlist version was changed

See Also:
Constant Field Values

PLAYLIST_DELETED

public static final int PLAYLIST_DELETED
the playlist was deleted

See Also:
Constant Field Values

PLAYLIST_LOADED

public static final int PLAYLIST_LOADED
the playlist was loaded

See Also:
Constant Field Values

PLAYLIST_SAVED

public static final int PLAYLIST_SAVED
the playlist was changed

See Also:
Constant Field Values

PLAYLIST_CLEARED

public static final int PLAYLIST_CLEARED
the playlist was cleared

See Also:
Constant Field Values
Constructor Detail

PlaylistChangeEvent

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

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

PlaylistChangeEvent

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

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