com.traxel.lm.server
Class LmServer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.traxel.lm.server.LmServer
All Implemented Interfaces:
javax.swing.event.ChangeListener, java.util.EventListener, com.traxel.lm.server.LmServerStates, java.lang.Runnable

public class LmServer
extends java.lang.Thread
implements com.traxel.lm.server.LmServerStates, javax.swing.event.ChangeListener


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface com.traxel.lm.server.LmServerStates
PAUSED, PLAYING, STOPPED
 
Constructor Summary
LmServer(java.awt.Component frame, com.traxel.lm.model.LmLog lmLog, com.traxel.lm.util.LmPreferences preferences)
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener listener)
           
 void close()
          Inserted by Mohammed Imran
 void fireStateChanged()
           
 int getPort()
           
 int getState()
           
 void pauseEvents()
           
 void playEvents()
           
 void pleaseGetNewPort()
           
 void pleaseStop()
           
 void run()
           
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 void stopEvents()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

LmServer

public LmServer(java.awt.Component frame,
                com.traxel.lm.model.LmLog lmLog,
                com.traxel.lm.util.LmPreferences preferences)
Method Detail

playEvents

public void playEvents()

pauseEvents

public void pauseEvents()

stopEvents

public void stopEvents()

getState

public int getState()

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener listener)

fireStateChanged

public void fireStateChanged()

close

public void close()
Inserted by Mohammed Imran


stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

pleaseStop

public void pleaseStop()

pleaseGetNewPort

public void pleaseGetNewPort()

getPort

public int getPort()