public static class BasicMonitor.Delegating extends java.lang.Object implements Monitor
| Constructor and Description |
|---|
Delegating(Monitor monitor) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTask(java.lang.String name,
int totalWork)
Called once per instance to indicate the name of the task and its expected duration.
|
void |
clearBlocked()
Clears the reason for the activity being blocked.
|
void |
done()
Called to indicate the task is complete.
|
void |
internalWorked(double work)
Called by subprogress monitors to do fractional work.
|
boolean |
isCanceled()
Returns whether the activity has been canceled.
|
void |
setBlocked(Diagnostic reason)
Sets the reason for the activity being blocked.
|
void |
setCanceled(boolean value)
Sets whether the active should be canceled.
|
void |
setTaskName(java.lang.String name)
Update the task name.
|
void |
subTask(java.lang.String name)
Sets the current subtask of the overall task.
|
void |
worked(int work)
Called to indicate the amount or progress on the task.
|
protected Monitor monitor
public Delegating(Monitor monitor)
public boolean isCanceled()
MonitorisCanceled in interface Monitorpublic void setCanceled(boolean value)
MonitorsetCanceled in interface Monitorpublic void setBlocked(Diagnostic reason)
MonitorsetBlocked in interface Monitorpublic void clearBlocked()
MonitorclearBlocked in interface Monitorpublic void beginTask(java.lang.String name,
int totalWork)
Monitorpublic void setTaskName(java.lang.String name)
MonitorsetTaskName in interface Monitorpublic void subTask(java.lang.String name)
Monitorpublic void worked(int work)
Monitorpublic void internalWorked(double work)
MonitorinternalWorked in interface MonitorCopyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature