public class ProgressMonitorAdapter extends Object implements IProgressMonitorAdapter, WindupToolingProgressMonitor
UNKNOWN| Constructor and Description |
|---|
ProgressMonitorAdapter(IProgressMonitorAdapter delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTask(String task,
int totalWork)
Notifies that the main task is beginning.
|
void |
done()
Notifies that the work is done; that is, either the main task is completed or the user canceled it.
|
boolean |
isCancelled()
Returns whether cancellation of current operation has been requested.
|
void |
logMessage(LogRecord logRecord)
Called for each
LogRecord generated by Windup. |
void |
setCancelled(boolean value)
Sets the cancel state to the given value.
|
void |
setTaskName(String name)
Sets the task name to the given value.
|
void |
subTask(String name)
Notifies that a subtask of the main task is beginning.
|
void |
worked(int work)
Notifies that a given number of work unit of the main task has been completed.
|
public ProgressMonitorAdapter(IProgressMonitorAdapter delegate)
public void beginTask(String task, int totalWork)
WindupToolingProgressMonitorbeginTask in interface IProgressMonitorAdapterbeginTask in interface WindupToolingProgressMonitortask - the name (or description) of the main tasktotalWork - the total number of work units into which the main task is been subdivided. If the value is UNKNOWN the
implementation is free to indicate progress in a way which doesn't require the total number of work units in advance.public void done()
WindupToolingProgressMonitordone in interface IProgressMonitorAdapterdone in interface WindupToolingProgressMonitorpublic boolean isCancelled()
WindupToolingProgressMonitorisCancelled in interface IProgressMonitorAdapterisCancelled in interface WindupToolingProgressMonitortrue if cancellation has been requested, and false otherwiseWindupToolingProgressMonitor.setCancelled(boolean)public void setCancelled(boolean value)
WindupToolingProgressMonitorsetCancelled in interface IProgressMonitorAdaptersetCancelled in interface WindupToolingProgressMonitorvalue - true indicates that cancellation has been requested (but not necessarily acknowledged); false clears
this flagWindupToolingProgressMonitor.isCancelled()public void setTaskName(String name)
WindupToolingProgressMonitorsetTaskName in interface IProgressMonitorAdaptersetTaskName in interface WindupToolingProgressMonitorname - the name (or description) of the main taskWindupToolingProgressMonitor.beginTask(java.lang.String, int)public void subTask(String name)
WindupToolingProgressMonitorsubTask in interface IProgressMonitorAdaptersubTask in interface WindupToolingProgressMonitorname - the name (or description) of the subtaskpublic void worked(int work)
WindupToolingProgressMonitorworked in interface IProgressMonitorAdapterworked in interface WindupToolingProgressMonitorwork - a non-negative number of work units just completedpublic void logMessage(LogRecord logRecord)
WindupToolingProgressMonitorLogRecord generated by Windup.logMessage in interface IProgressMonitorAdapterlogMessage in interface WindupToolingProgressMonitorCopyright © 2021 JBoss by Red Hat. All rights reserved.