Class Task
java.lang.Object
java.lang.Thread
javaforce.webui.tasks.Task
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionintprotected booleanFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITYFields inherited from interface Status
null_status -
Constructor Summary
ConstructorsConstructorDescriptionCreates new task with action, user, ip.Creates new task with action and parent task.Creates new task with TaskEvent.Creates new task with TaskEvent and parent task. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoTask()Performs task in a thread.getError()Create standard error message.booleanfinal voidrun()voidsetPercent(int value) voidsetResult(boolean success) voidSet final task status completion.voidSet progress status update.Methods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
running
protected boolean running -
percent
public int percent -
event
-
tasks
-
taskui
-
parent
-
-
Constructor Details
-
Task
-
Task
Creates new task with TaskEvent. -
Task
-
Task
-
-
Method Details
-
run
-
doTask
public void doTask()Performs task in a thread. -
setStatus
-
setPercent
public void setPercent(int value) - Specified by:
setPercentin interfaceStatus
-
setResult
-
setResult
-
getAction
-
getResult
-
getSuccessful
public boolean getSuccessful() -
getError
Create standard error message.
-