|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
net.sf.tacos.demo.partial.ProgressWorkThread
public class ProgressWorkThread
Demonstration of ProgressWorker.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ProgressWorkThread()
Default constructor |
|
| Method Summary | |
|---|---|
void |
cancelTask()
Can be invoked by a user inpatient to see the request completed. |
double |
getCurrentProgress()
Should represent a number value indicating the current progress value out of the total derived in ProgressWorker.getTotalProgress(). |
String |
getCurrentStatus()
If value not null will be used to display any textual information that may be useful to see along with the basic numeric values. |
double |
getTotalProgress()
The total value that this progress represents. |
boolean |
isComplete()
Should return true once the task is completed. |
void |
run()
|
| 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 |
| Constructor Detail |
|---|
public ProgressWorkThread()
| Method Detail |
|---|
public double getTotalProgress()
ProgressBar.
getTotalProgress in interface ProgressWorkerpublic double getCurrentProgress()
ProgressWorker.getTotalProgress().
getCurrentProgress in interface ProgressWorkerpublic String getCurrentStatus()
getCurrentStatus in interface ProgressWorkerpublic boolean isComplete()
isComplete in interface ProgressWorkerpublic void cancelTask()
ProgressWorker.isComplete() will return true.
cancelTask in interface ProgressWorkerpublic void run()
run in interface Runnablerun in class Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||