Package javaforce
Class JFTask
java.lang.Object
java.lang.Thread
javaforce.JFTask
- All Implemented Interfaces:
Runnable,ShellProcessListener
A special Thread (task) for ProgressDialog.
You should override work();
You should override work();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voiddispose()getProperty(String key) booleanvoidrun()voidvoidsetProgress(int value) voidsetProperty(String key, Object value) voidvoidshellProcessOutput(String out) voidstart(JFTaskListener pd) abstract booleanwork()Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
abort
public volatile boolean abort
-
-
Constructor Details
-
JFTask
public JFTask()
-
-
Method Details
-
start
-
run
public void run() -
abort
public void abort() -
dispose
public void dispose() -
work
public abstract boolean work() -
getStatus
public boolean getStatus() -
setLabel
-
setTitle
-
setProgress
public void setProgress(int value) -
shellProcessOutput
- Specified by:
shellProcessOutputin interfaceShellProcessListener
-
setProperty
-
getProperty
-