|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This listener can be used if the progress of a long time process should be observed. Such a process has a defined minimal and maximal value for his accomplishment.
| Method Summary | |
int |
getMaximum()
Returns the used max value of the listener. |
int |
getMinimum()
Returns the used minimal value of the listener. |
double |
getPercentage()
Will be called from the running task, to retrieve the current progress state as a percentage value. |
int |
getProgress()
Will be called from the running task, to retrieve the current progress state. |
void |
setMaximum(int max)
Sets the max value used by the listener. |
void |
setMinimum(int min)
Sets the minimal value used by the listener. |
void |
setPercentage(double value)
Will be called from the running task, indicating that a new progress state (given as percentage value) has reached. |
void |
setProgress(int value)
Will be called from the running task, indicating that a new progress state was reached. |
void |
setProgress(int progressValue,
boolean absolut)
Sets a new progress value discerning between the two modes Add or Set. |
| Method Detail |
public int getMinimum()
public int getMaximum()
public void setMinimum(int min)
min - the minimal value to be set.public void setMaximum(int max)
max - the maximal value to be set.
public void setProgress(int progressValue,
boolean absolut)
progressValue - the value to add to the currently set value
or to set the current value to.absolut - determines whether to add or to set the given value.public void setProgress(int value)
value - the value to be set.public int getProgress()
public void setPercentage(double value)
value - the percentual value to be set.public double getPercentage()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||