|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A Task is a time-consuming operation which supports returning status information.
| Field Summary | |
static int |
PROGRESS_UNAVAILABLE
Should be returned by getProgress() if the current
status cannot be determined. |
| Method Summary | |
int |
getMaximumProgress()
Gets the maximum progress of this task, i.e. the progress value when this task has just terminated. |
int |
getMinimumProgress()
Gets the minimum progress of this task, i.e. the progress value when this task hasn't done anything yet. |
String |
getName()
Gets the name of this task which may be displayed to the user. |
int |
getProgress()
Gets the current progress value of this task. |
boolean |
isActive()
Tells if the task is currently running (active) or not. |
| Field Detail |
public static final int PROGRESS_UNAVAILABLE
getProgress() if the current
status cannot be determined.
| Method Detail |
public String getName()
public boolean isActive()
public int getMinimumProgress()
public int getMaximumProgress()
public int getProgress()
getMinimumProgress() <=
getProgress() <= getMaximumProgress() .
If the progress cannot be determined, this method
should return PROGRESS_UNAVAILABLE.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||