Package com.tagtraum.beatunes.songtable
Class CurrentlyPlayingTracker
- java.lang.Object
-
- com.tagtraum.beatunes.songtable.CurrentlyPlayingTracker
-
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
public class CurrentlyPlayingTracker extends Object implements PropertyChangeListener
Tracks the currently playing songs and scrolls a table appropriately.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description CurrentlyPlayingTracker(PlayListPlayer player, JTable table)
CurrentlyPlayingTracker(PlayListPlayer player, JTable table, Predicate<PlayListPlayer> tableShowsCurrentPlayList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
propertyChange(PropertyChangeEvent evt)
-
-
-
Constructor Detail
-
CurrentlyPlayingTracker
public CurrentlyPlayingTracker(PlayListPlayer player, JTable table)
- Parameters:
player
-table
-
-
CurrentlyPlayingTracker
public CurrentlyPlayingTracker(PlayListPlayer player, JTable table, Predicate<PlayListPlayer> tableShowsCurrentPlayList)
- Parameters:
player
-table
-tableShowsCurrentPlayList
- tests whether the configured table is really the one that is currently playing the track
-
-
Method Detail
-
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
-