|
||||||||||
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
Abstract thread class for performing simultaneous tasks. Extends the standard Thread class by reporting progress in a status bar that may be attached to an AWT frame.
StatusBar
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
LSThread(String startMessage,
GISFrame gf)
Creates thread and stores status bar to report progress. |
|
LSThread(String startMessage,
StatusBar sb)
Creates thread and stores status bar to report progress. |
|
LSThread(String startMessage,
StatusBar sb,
Component c)
Creates thread and stores status bar and component to control pointer changes. |
Method Summary | |
abstract void |
doProcessing()
Abstract method that will contain processing. |
void |
run()
Starts the thread's processing and reports on progress. |
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, StatusBar sb)
startMessage
- Message to display when thread starts.sb
- Status bar that will report thread's progress.public LSThread(String startMessage, GISFrame gf)
startMessage
- Message to display when thread starts.gf
- GUIFrame that issued the thread.public LSThread(String startMessage, StatusBar sb, Component c)
startMessage
- Message to display when thread starts.sb
- Status bar that will report thread's progress.c
- Component that changes pointer when in focus.Method Detail |
public void run()
run
in interface Runnable
run
in class Thread
public abstract void doProcessing()
public void setMessage(String m)
m
- Message to display when processing has been completed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |