public abstract class Task
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
Task(java.lang.String name,
java.lang.String title) |
Task(java.lang.String name,
java.lang.String title,
MutableBoolean processing) |
Task(java.lang.String name,
java.lang.String title,
MutableBoolean processing,
java.lang.Runnable updateStateComponents) |
Task(java.lang.String name,
java.lang.String title,
MutableBoolean processing,
java.lang.Runnable updateStateComponents,
TaskStatusController taskStatusController) |
Task(java.lang.String name,
java.lang.String title,
java.lang.Runnable updateStateComponents,
TaskStatusController taskStatusController) |
Modifier and Type | Method and Description |
---|---|
static Task |
get(Task task) |
boolean |
isProcessing() |
boolean |
needToShowTheStatus() |
protected void |
postTask() |
void |
run() |
void |
start() |
protected abstract void |
task(SimpleTaskStatus taskStatus) |
public static final Task FAKE_TASK
public Task(java.lang.String name, java.lang.String title, MutableBoolean processing, java.lang.Runnable updateStateComponents, TaskStatusController taskStatusController)
public Task(java.lang.String name, java.lang.String title, java.lang.Runnable updateStateComponents, TaskStatusController taskStatusController)
public Task(java.lang.String name, java.lang.String title, MutableBoolean processing, java.lang.Runnable updateStateComponents)
public Task(java.lang.String name, java.lang.String title, MutableBoolean processing)
public Task(java.lang.String name, java.lang.String title)
public final void run()
run
in interface java.lang.Runnable
public void start()
public boolean isProcessing()
public boolean needToShowTheStatus()
protected abstract void task(SimpleTaskStatus taskStatus) throws java.lang.Throwable
java.lang.Throwable
protected void postTask()