com.soundhelix.remotecontrol
Class AbstractTextRemoteControl
java.lang.Object
com.soundhelix.remotecontrol.AbstractTextRemoteControl
- All Implemented Interfaces:
- RemoteControl, TextRemoteControl, Runnable
- Direct Known Subclasses:
- ConsoleRemoteControl, SwingRemoteControl
public abstract class AbstractTextRemoteControl
- extends Object
- implements TextRemoteControl
Implements an abstract simple text-based remote control.
- Author:
- Thomas Schuerger (thomas@schuerger.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTextRemoteControl
public AbstractTextRemoteControl()
run
public void run()
- Implements the main functionality of the remote control.
- Specified by:
run in interface Runnable
getSongContext
public SongContext getSongContext()
- Description copied from interface:
RemoteControl
- Gets the song context to be remote-controlled.
- Specified by:
getSongContext in interface RemoteControl
- Returns:
- the song context
setSongContext
public void setSongContext(SongContext songContext)
- Description copied from interface:
RemoteControl
- Sets the song context to be remote-controlled.
- Specified by:
setSongContext in interface RemoteControl
- Parameters:
songContext - the song context