public class TaskProgressUpdater extends java.lang.Object implements TaskProgressListener
| Constructor and Description |
|---|
TaskProgressUpdater(ProgressListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
increment() |
boolean |
isCanceled()
Indicates to the running task that it has been canceled and should stop
as soon as possible.
|
void |
setIndeterminate(boolean bool)
Allows the object performing the action to indicate that it won't be able to report back progress information.
|
void |
setNote(java.lang.String note)
Sets some sort of note or information about the current position.
|
void |
setProgress(int val)
Used to update the current progress value, should be between 0 and the value sent to setProgressMax.
|
void |
setProgressMax(int max)
Used to indicate the upper bound of value that will be passed to setProgress.
|
public TaskProgressUpdater(ProgressListener listener)
public void increment()
public boolean isCanceled()
TaskProgressListenerisCanceled in interface TaskProgressListenerpublic void setProgressMax(int max)
ProgressListenersetProgressMax in interface ProgressListenerpublic void setProgress(int val)
ProgressListenersetProgress in interface ProgressListenerpublic void setNote(java.lang.String note)
ProgressListenersetNote in interface ProgressListenerpublic void setIndeterminate(boolean bool)
ProgressListenersetIndeterminate in interface ProgressListener