| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | beginTask(String
title to describe the task. Callers should publish these as
stable string constants that implementations could match
against for translation support. title, int total number of work units the application will perform;
total)UNKNOWN if it cannot be predicted in advance.Implements org. Begin processing a single task. |
| public void | endTask()
Implements org. Finish the current task, so the next can begin. |
| public boolean | isCancelled()
Implements org. Check for user task cancellation. |
| public void | showDuration(boolean
whether to show elapsed time per task enabled)Implements org. Set whether the monitor should show elapsed time per task |
| public void | start(int
the total number of tasks the caller will need to complete
their processing. totalTasks)Implements org. Advise the monitor of the total number of subtasks. |
| public void | update(int
the number of work units completed since the last call. completed)Implements org. Denote that some work units have been completed. |
| lastWork | back to summary |
|---|---|
| private int lastWork | |
| totalWork | back to summary |
|---|---|
| private int totalWork | |
| StrictWorkMonitor | back to summary |
|---|---|
| public StrictWorkMonitor() | |
| beginTask | back to summary |
|---|---|
| public void beginTask(String title, int total) Implements org. Doc from org. Begin processing a single task.
| |
| endTask | back to summary |
|---|---|
| public void endTask() Implements org. Doc from org. Finish the current task, so the next can begin.
| |
| isCancelled | back to summary |
|---|---|
| public boolean isCancelled() Implements org. Doc from org. Check for user task cancellation.
| |
| showDuration | back to summary |
|---|---|
| public void showDuration(boolean enabled) Implements org. Doc from org. Set whether the monitor should show elapsed time per task
| |
| start | back to summary |
|---|---|
| public void start(int totalTasks) Implements org. Doc from org. Advise the monitor of the total number of subtasks. This should be invoked at most once per progress monitor interface.
| |
| update | back to summary |
|---|---|
| public void update(int completed) Implements org. Doc from org. Denote that some work units have been completed.
This is an incremental update; if invoked once per work unit the correct
value for our argument is
| |