|
Jalopy 1.0b11 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProgressMonitor
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 |
---|
void setCanceled(boolean state)
state
- true
to request a cancelation of the monitored
operation.boolean isCanceled()
true
if the user canceled the monitored operation.void setProgress(int units)
units
- the amount of work units done.int getProgress()
void setText(java.lang.String text)
text
- description to be displayed.void begin(java.lang.String text, int units)
text
- description to be displayed.units
- amount of work units to be done.void done()
setCanceled(boolean)
|
Jalopy 1.0b11 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |