|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread com.cosylab.gui.components.AbstractProgressTask
public abstract class AbstractProgressTask
Convenience implementation of ProgressMonitor
. Contains
methods for firing events.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
AbstractProgressTask()
AbstractProgressTask constructor comment. |
Method Summary | |
---|---|
void |
addProgressListener(ProgressListener listener)
Adds listener. |
protected void |
fireProgressEvent(java.lang.String status,
int current,
int total)
Notifies listeners that current progress has changed. |
protected void |
fireTaskComplete()
Notifies listeners that a task has been completed. |
protected void |
fireTaskInterrupted(java.lang.String reason)
Notifies listeners that a task has been interrupted during execution. |
protected void |
fireTaskStarted()
Notify listeners that task has started execution. |
protected void |
immediateUpdate()
Force listeners to update immediately. |
void |
removeProgressListener(ProgressListener listener)
Removes listener. |
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, run, 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 |
Methods inherited from interface com.cosylab.gui.components.ProgressMonitor |
---|
getCurrent, getStatus, getTotal |
Constructor Detail |
---|
public AbstractProgressTask()
Method Detail |
---|
public void addProgressListener(ProgressListener listener)
addProgressListener
in interface ProgressMonitor
listener
- to add.protected void fireProgressEvent(java.lang.String status, int current, int total)
status
- Description of current status.current
- progress, should be less than totaltotal
- ammount.protected void fireTaskComplete()
protected void fireTaskInterrupted(java.lang.String reason)
reason
- Description of reason for interruption.protected void fireTaskStarted()
protected void immediateUpdate()
public void removeProgressListener(ProgressListener listener)
removeProgressListener
in interface ProgressMonitor
listener
- to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |