|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread jwo.landserf.process.LSThread
Processing thread that times itself and allows messages
to be logged. Any class that inherits this must place
the body of the thread in the doProcessing
method.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
LSThread(String startMessage,
GISFrame gisFrame)
Creates thread and stores status bar to report progress. |
Method Summary | |
abstract void |
doProcessing()
Abstract method that will contain processing. |
void |
resetTimer()
Resets the timer for threads that have GUI processes that shouldn't contribute to the time of the process. |
void |
run()
Starts the thread's processing and reports on progress. |
void |
setErrorMessage(String m)
Sets an error message to be displayed once the thread has completed. |
void |
setMessage(String m)
Sets the final message once the processing has been completed. |
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 |
public LSThread(String startMessage, GISFrame gisFrame)
startMessage
- Message to display when thread starts.gisFrame
- Frame that called the thread.Method Detail |
public void run()
public void resetTimer()
public abstract void doProcessing()
public void setMessage(String m)
m
- Message to display when processing has been completed.public void setErrorMessage(String m)
m
- Error message to display.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |