| Modifier and Type | Field and Description |
|---|---|
| public static final int | UNKNOWN
Constant indicating the total work units cannot be predicted. |
| 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;
totalWork)UNKNOWN if it cannot be predicted in advance.Begin processing a single task. |
| public void | |
| public boolean | Returns: true if the user asked the process to stop working.Check for user task cancellation. |
| public void | showDuration(boolean
whether to show elapsed time per task enabled)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)Advise the monitor of the total number of subtasks. |
| public void | update(int
the number of work units completed since the last call. completed)Denote that some work units have been completed. |
| UNKNOWN | back to summary |
|---|---|
| public static final int UNKNOWN Constant indicating the total work units cannot be predicted. | |
| beginTask | back to summary |
|---|---|
| public void beginTask(String title, int totalWork) Begin processing a single task. | |
| endTask | back to summary |
|---|---|
| public void endTask() Finish the current task, so the next can begin. | |
| isCancelled | back to summary |
|---|---|
| public boolean isCancelled() Check for user task cancellation.
| |
| showDuration | back to summary |
|---|---|
| public void showDuration(boolean enabled) Set whether the monitor should show elapsed time per task
| |
| start | back to summary |
|---|---|
| public void start(int totalTasks) 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) 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
| |