|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProgressMonitor
A interface for monitoring task progress.
Method Summary | |
---|---|
void |
done()
Notifies that the work is done; that is, either the main task is completed or the user cancelled it. |
boolean |
isCanceled()
Returns true if the user does some UI action to cancel this operation. |
void |
setCanceled(boolean b)
Attempts to cancel the monitored task. |
void |
subTaskStarted(String name)
Notifies that a subtask of the main task is beginning. |
void |
taskStarted(String name,
int totalWork)
Notifies that the main task is beginning. |
void |
worked(int work)
Notifies that a percentage of the work has been completed. |
Method Detail |
---|
void taskStarted(String name, int totalWork)
name
- 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 0 or UNKNOWN the
implemenation is free to indicate progress in a way which
doesn't require the total number of work units in advance. In
general users should use the UNKNOWN value if they don't know
the total amount of work units.void subTaskStarted(String name)
name
- the name (or description) of the subtaskvoid worked(int work)
work
- the percentage complete (0..100)void done()
boolean isCanceled()
void setCanceled(boolean b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |