|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An task monitor that provides control and feedback.
Field Summary | |
static int |
UNKNOWN
Represents an unknown amount or work. |
Method Summary | |
void |
beginTask(String name,
int totalWork)
Called once per instance to indicate the name of the task and its expected duration. |
void |
clearBlocked()
Clears the reason for the activity being blocked. |
void |
done()
Called to indicate the task is complete. |
void |
internalWorked(double work)
Called by subprogress monitors to do fractional work. |
boolean |
isCanceled()
Returns whether the activity has been canceled. |
void |
setBlocked(Diagnostic reason)
Sets the reason for the activity being blocked. |
void |
setCanceled(boolean value)
Sets whether the active should be canceled. |
void |
setTaskName(String name)
Update the task name. |
void |
subTask(String name)
Sets the current subtask of the overall task. |
void |
worked(int work)
Called to indicate the amount or progress on the task. |
Field Detail |
public static final int UNKNOWN
Method Detail |
public boolean isCanceled()
public void setCanceled(boolean value)
public void setBlocked(Diagnostic reason)
public void clearBlocked()
public void beginTask(String name, int totalWork)
public void setTaskName(String name)
public void subTask(String name)
public void worked(int work)
public void internalWorked(double work)
public void done()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |