public class MultiTaskProgress extends WorkProgressImpl implements WorkProgress.MultiTask
WorkProgress.MultiTask| Modifier and Type | Field and Description |
|---|---|
protected JoinPoint<Exception> |
jp |
protected ArrayList<WorkProgress> |
tasks |
| Constructor and Description |
|---|
MultiTaskProgress(String text)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(WorkProgress task,
long amount)
Add the given sub-progress as a sub-task for the given amount of work (this amount is added to the total amount to be done).
|
WorkProgress |
createTaskProgress(long amount,
String text)
Create a sub-progress for the given amount of work (this amount is added to the total amount to be done).
|
void |
doneOnSubTasksDone()
Automatically call the done or error method of this WorkProgress once all current sub-tasks are done.
|
void |
endOfTasks()
Signal that no more task will be added, meaning that once all current sub-tasks are done, this WorkProgress is done.
|
List<? extends WorkProgress> |
getTasks()
Return the sub-WorkProgress.
|
cancel, changed, done, error, getAmount, getPosition, getRemainingWork, getSubText, getSynch, getText, listen, progress, setAmount, setPosition, setSubText, setText, unlistenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlink, linkTo, linkToprotected ArrayList<WorkProgress> tasks
public MultiTaskProgress(String text)
public WorkProgress createTaskProgress(long amount, String text)
public void addTask(WorkProgress task, long amount)
public void endOfTasks()
public List<? extends WorkProgress> getTasks()
WorkProgress.MultiTaskgetTasks in interface WorkProgress.MultiTaskpublic void doneOnSubTasksDone()
Copyright © 2018. All rights reserved.