ProgressMonitor
public class SimpleProgressMonitor extends java.lang.Object implements ProgressMonitor
Constructor | Description |
---|---|
SimpleProgressMonitor() |
Modifier and Type | Method | Description |
---|---|---|
void |
beginTask(java.lang.String name,
int totalWork) |
Notifies that the main task is beginning.
|
void |
cancel() |
Cancel the running task.
|
void |
done() |
Notifies that the work is done; that is, either the main task is completed or the
user canceled it.
|
long |
getStartTime() |
Get the time when beginTask() has been called.
|
boolean |
isCanceled() |
Returns whether cancelation of current operation has been requested.
|
void |
worked(int work) |
Notifies that a given number of work unit of the main task has been completed.
|
public void beginTask(java.lang.String name, int totalWork)
ProgressMonitor
beginTask
in interface ProgressMonitor
name
- namepublic long getStartTime()
ProgressMonitor
getStartTime
in interface ProgressMonitor
public void worked(int work)
ProgressMonitor
worked
in interface ProgressMonitor
public void cancel()
ProgressMonitor
cancel
in interface ProgressMonitor
public void done()
ProgressMonitor
done
in interface ProgressMonitor
public boolean isCanceled()
ProgressMonitor
isCanceled
in interface ProgressMonitor