class StatusClearThread
extends java.lang.Thread
gclient
some seconds after the setClock() method is called.| Modifier and Type | Field and Description |
|---|---|
(package private) static boolean |
debug |
private java.lang.String |
defaultMessage |
(package private) boolean |
done |
(package private) boolean |
resetClock |
(package private) int |
sleepSecs |
(package private) javax.swing.JLabel |
statusLabel |
| Constructor and Description |
|---|
StatusClearThread(javax.swing.JLabel statusLabel) |
| Modifier and Type | Method and Description |
|---|---|
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 |
setDefaultMessage(java.lang.String message) |
void |
shutdown()
This method causes the run() method to gracefully terminate
without taking any further action.
|
activeCount, checkAccess, clone, 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, yieldstatic final boolean debug
boolean done
boolean resetClock
private java.lang.String defaultMessage
javax.swing.JLabel statusLabel
int sleepSecs
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void setDefaultMessage(java.lang.String message)
public void setClock(int countDown)
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.public void shutdown()