|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bff.javampd.monitor.MPDEventMonitor
public abstract class MPDEventMonitor
MPDEventMonitor is the abstract base class for all event monitors.
| Constructor Summary | |
|---|---|
MPDEventMonitor(MPD mpd)
Only contructor for this abstract base class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MPDEventMonitor(MPD mpd)
mpd - a connection to a MPD| Method Detail |
|---|
public void addTrackPositionChangeListener(TrackPositionChangeListener tpcl)
TrackPositionChangeListener to this object to receive
TrackPositionChangeEvents.
tpcl - the TrackPositionChangeListener to addpublic void removeTrackPositionChangeListener(TrackPositionChangeListener tpcl)
TrackPositionChangeListener from this object.
tpcl - the TrackPositionChangeListener to removeprotected void fireTrackPositionChangeEvent(long newTime)
TrackPositionChangeEvent to all registered
TrackPositionChangeListeners.
newTime - the new elapsed timepublic void addConnectionChangeListener(ConnectionChangeListener ccl)
ConnectionChangeListener to this object to receive
ConnectionChangeEvents.
ccl - the ConnectionChangeListerner to addpublic void removeConnectionChangeListener(ConnectionChangeListener ccl)
ConnectionChangeListener from this object.
ccl - the ConnectionChangeListener to remove
protected void fireConnectionChangeEvent(boolean isConnected,
java.lang.String msg)
ConnectionChangeEvent to all registered
ConnectionChangeListeners.
isConnected - the connection statusprotected final void checkConnection()
ConnectionChangeEvent
if the connection status changes.
protected final void checkTrackPosition(long newPos)
TrackPositionChangeEvent if
there has been a change in track position.
newPos - the new elapsed time to check
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||