|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.utils.DefaultProgressUpdater
public class DefaultProgressUpdater
Simple class that implements ProgressUpdater and prints the
percentage of iterations that is already done on the screen.
| Field Summary | |
|---|---|
protected int |
max
The maximal number of steps. |
| Constructor Summary | |
|---|---|
DefaultProgressUpdater()
Creates a DefaultProgressUpdater. |
|
| Method Summary | |
|---|---|
boolean |
isCancelled()
Specifies if the process is cancelled by the user. |
void |
setMax(int max)
Sets the maximal value that will be set by ProgressUpdater.setValue(int), so a
value of max indicates the end of the supervised method call. |
void |
setValue(int value)
Sets the current value the supervised process has reached. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int max
| Constructor Detail |
|---|
public DefaultProgressUpdater()
DefaultProgressUpdater.
| Method Detail |
|---|
public void setMax(int max)
ProgressUpdaterProgressUpdater.setValue(int), so a
value of max indicates the end of the supervised method call.
setMax in interface ProgressUpdatermax - the maximal valuepublic void setValue(int value)
ProgressUpdater
setValue in interface ProgressUpdatervalue - the current valuepublic boolean isCancelled()
ProgressUpdater
isCancelled in interface ProgressUpdatertrue if process was cancelled, false
otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||