de.hattrickorganizer.gui.utils
Class MP3PlayerWrapper

java.lang.Object
  extended by java.lang.Thread
      extended by de.hattrickorganizer.gui.utils.MP3PlayerWrapper
All Implemented Interfaces:
java.lang.Runnable, IMP3Player

public class MP3PlayerWrapper
extends java.lang.Thread
implements IMP3Player


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MP3PlayerWrapper()
           
 
Method Summary
 void close()
          Ends playing the mp3 file.
 void run()
          Start playing the MP3 File, that was set with setMP3File( String )
 void setMP3File(java.lang.String file)
          Set the filepath and filename to the mp3 file
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MP3PlayerWrapper

public MP3PlayerWrapper()
Method Detail

run

public void run()
Description copied from interface: IMP3Player
Start playing the MP3 File, that was set with setMP3File( String )

Specified by:
run in interface java.lang.Runnable
Specified by:
run in interface IMP3Player
Overrides:
run in class java.lang.Thread

setMP3File

public void setMP3File(java.lang.String file)
Description copied from interface: IMP3Player
Set the filepath and filename to the mp3 file

Specified by:
setMP3File in interface IMP3Player
Parameters:
file - the path to the file

close

public void close()
Description copied from interface: IMP3Player
Ends playing the mp3 file.

Specified by:
close in interface IMP3Player