arlut.csd.ganymede.client
Class StatusClearThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--arlut.csd.ganymede.client.StatusClearThread
All Implemented Interfaces:
java.lang.Runnable

class StatusClearThread
extends java.lang.Thread

Background thread designed to clear the status label in gclient some seconds after the setClock() method is called.


Field Summary
(package private) static boolean debug
           
(package private)  boolean done
           
(package private)  boolean resetClock
           
(package private)  int sleepSecs
           
(package private)  javax.swing.JTextField statusLabel
           
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
StatusClearThread(javax.swing.JTextField statusLabel)
           
 
Method Summary
 void run()
           
 void setClock(int countDown)
          This method resets the clock in the StatusClearThread, such that the status label will be cleared in countDown seconds, unless another setClock follows on closely enough to interrupt the countdown, effectively.
 void shutdown()
          This method causes the run() method to gracefully terminate without taking any further action.
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

static final boolean debug

done

boolean done

resetClock

boolean resetClock

statusLabel

javax.swing.JTextField statusLabel

sleepSecs

int sleepSecs
Constructor Detail

StatusClearThread

public StatusClearThread(javax.swing.JTextField statusLabel)
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread

setClock

public void setClock(int countDown)

This method resets the clock in the StatusClearThread, such that the status label will be cleared in countDown seconds, unless another setClock follows on closely enough to interrupt the countdown, effectively.

Parameters:
countDown - seconds to wait before clearing the status field. If countDown is zero or negative, the timer will suspend until a later call to setClock sets a positive countdown.

shutdown

public void shutdown()

This method causes the run() method to gracefully terminate without taking any further action.