public interface ProgressMeasure
| Modifier and Type | Field and Description |
|---|---|
static double |
DONE |
static double |
INDETERMINATE |
static double |
INITIAL |
| Modifier and Type | Method and Description |
|---|---|
ProgressMeasure |
addListener(Consumer<ProgressMeasure> listener)
Adds a listener that will be called each time a value changes.
|
static ProgressMeasure |
create() |
String |
getCurrentAction()
Gets the current action.
|
double |
getProgress()
Gets the progress ratio.
|
default boolean |
isDone()
Returns
true if this task is done. |
void |
setCurrentAction(String action)
Sets the current action.
|
void |
setProgress(double value)
Sets the progress ratio.
|
static final double INDETERMINATE
static final double INITIAL
static final double DONE
void setProgress(double value)
value - the new progress valuedouble getProgress()
default boolean isDone()
true if this task is done.true if done, else falsevoid setCurrentAction(String action)
action - what is going onString getCurrentAction()
ProgressMeasure addListener(Consumer<ProgressMeasure> listener)
listener - to addProgressMeasure that has the
provided listenerstatic ProgressMeasure create()
Copyright © 2019 Speedment, Inc.. All rights reserved.