|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread net.sf.tacos.demo.partial.ProgressWorkThread
Demonstration of ProgressWorker
.
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. Method doesn't have to cancel exactly when called, or at all, but it is expected that this method will block at least until the task is complete. Only return from this call if calling ProgressWorker.isComplete() will return true. |
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. This should be specific to your task, not in terms of percent complete, as the percentage values will be calculated automatically by the ProgressBar . |
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, 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 ProgressWorkThread()
Method Detail |
public double getTotalProgress()
ProgressBar
.
getTotalProgress
in interface ProgressWorker
public double getCurrentProgress()
ProgressWorker.getTotalProgress()
.
getCurrentProgress
in interface ProgressWorker
public String getCurrentStatus()
getCurrentStatus
in interface ProgressWorker
public boolean isComplete()
isComplete
in interface ProgressWorker
public void cancelTask()
ProgressWorker.isComplete()
will return true.
cancelTask
in interface ProgressWorker
public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |