|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Common interface for objects that monitor the progress of an operation.
Method Summary | |
void |
begin(java.lang.String text,
int units)
Begins the monitoring of an operation. |
void |
done()
Notifies that the worker is done. |
int |
getProgress()
Returns the amount of work units done. |
boolean |
isCanceled()
Indicates whether the user canceled the monitored operation. |
void |
setCanceled(boolean state)
Sets the canceled state to the given value. |
void |
setProgress(int units)
Sets amount of work units done to units. |
void |
setText(java.lang.String text)
Sets the description to be displayed. |
Method Detail |
public void setCanceled(boolean state)
state
- true
to request a cancelation of the monitored
operation.public boolean isCanceled()
true
if the user canceled the monitored operation.public void setProgress(int units)
units
- the amount of work units done.public int getProgress()
public void setText(java.lang.String text)
text
- description to be displayed.public void begin(java.lang.String text, int units)
text
- description to be displayed.units
- amount of work units to be done.public void done()
setCanceled(boolean)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |