|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.gjt.sp.util.WorkThread
Services work requests in the background.
Nested Class Summary | |
static class |
WorkThread.Abort
|
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
WorkThread(WorkThreadPool pool,
java.lang.ThreadGroup group,
java.lang.String name)
|
Method Summary | |
void |
abortCurrentRequest()
Aborts the currently running request, if allowed. |
int |
getProgressMaximum()
Returns the progress maximum. |
int |
getProgressValue()
Returns the progress value. |
java.lang.String |
getStatus()
Returns the status text. |
boolean |
isRequestRunning()
Returns if the work thread is currently running a request. |
void |
run()
|
void |
setAbortable(boolean abortable)
Sets if the current request can be aborted. |
void |
setProgressMaximum(int progressMaximum)
Sets the maximum progress value. |
void |
setProgressValue(int progressValue)
Sets the progress value. |
void |
setStatus(java.lang.String status)
Sets the status text. |
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 WorkThread(WorkThreadPool pool, java.lang.ThreadGroup group, java.lang.String name)
Method Detail |
public void setAbortable(boolean abortable)
public boolean isRequestRunning()
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public int getProgressValue()
public void setProgressValue(int progressValue)
public int getProgressMaximum()
public void setProgressMaximum(int progressMaximum)
public void abortCurrentRequest()
public void run()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |