de.nierbeck.timeTrack
Class StopWatch

java.lang.Object
  extended by java.lang.Thread
      extended by de.nierbeck.timeTrack.StopWatch
All Implemented Interfaces:
java.lang.Runnable

public final class StopWatch
extends java.lang.Thread

StopWatch Class which runs as thread updateing the duration section

Author:
Achim
See Also:
Thread

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int UPDATE_INTERVAL
          Static field UPDATE_INTERVAL
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StopWatch(TimeTrackEntriesManager entries)
          takes the TimeTrackEntriesManager wraper containing the entries so this class can update the duration field.
 
Method Summary
 void run()
          runs the timer thread
 void updateDuration()
          updates the duration field
 
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
 

Field Detail

UPDATE_INTERVAL

public static final int UPDATE_INTERVAL
Static field UPDATE_INTERVAL

See Also:
Constant Field Values
Constructor Detail

StopWatch

public StopWatch(TimeTrackEntriesManager entries)
takes the TimeTrackEntriesManager wraper containing the entries so this class can update the duration field.

Parameters:
entries - TimeTrackEntriesManager
Method Detail

run

public void run()
runs the timer thread

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

updateDuration

public void updateDuration()
updates the duration field



Copyright © 2003-2006 Nierbeck. All Rights Reserved.