Package org.jboss.elemento.flow
Interface Progress
public interface Progress
Interface to reflect the progress when executing a list of asynchronous tasks in
parallel, in sequence or
repeatedly as long as certain conditions are met.
Implementations should use some kind of graphical indicators such as a spinner or progress element.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()Indicates that the progress has been finished.voidreset()Resets the progress indicator.default voidreset(int max) Resets the progress indicator.voidResets the progress indicator.default voidtick()Indicates progress.voidIndicates progress using a description.
-
Field Details
-
NOOP
Noop progress indicator that does nothing.
-
-
Method Details
-
reset
void reset()Resets the progress indicator. Since nowmaxvalue is given, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take. -
reset
default void reset(int max) Resets the progress indicator. Themaxparameter describes how many tasks are going to be executed.- Parameters:
max- the number of tasks executed
-
reset
Resets the progress indicator. Themaxparameter describes how many tasks are going to be executed.- Parameters:
max- the number of tasks executedlabel- a description for the reset state
-
tick
default void tick()Indicates progress. -
tick
Indicates progress using a description.- Parameters:
label- a description of the progress
-
finish
void finish()Indicates that the progress has been finished.
-