|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wicketstuff.progressbar.Progression
public class Progression
The progress of a task is encapsulated as a Progression value object. Currently the
progress is only stored as an int percentage value (0 to 100) and optionally a message describing
the current task.
This class has no dependency to Wicket and could be used in the service layer.
| Constructor Summary | |
|---|---|
Progression(int progress)
Create a new Progression value object from a percentage progress value. |
|
Progression(int progress,
String message)
Create a new Progression value object from a percentage progress value and a message describing the current task |
|
| Method Summary | |
|---|---|
int |
getProgress()
|
String |
getProgressMessage()
|
boolean |
isDone()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Progression(int progress)
progress - The progress in percent from 0 to 100, where 100 means done
public Progression(int progress,
String message)
progress - The progress in percent from 0 to 100, where 100 means donemessage - The message we'd like to show to end users| Method Detail |
|---|
public boolean isDone()
public int getProgress()
public String getProgressMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||