The default mode is to show the current progress internally represented by a floating point value between 0 and 1 (inclusive). The progress bar can also be in an indeterminate mode showing an animation indicating that the task is running but without providing any information about the current progress. @since 7.1 @author Vaadin Ltd
Creates a progressBar UI component from this {@link WebMarkupContainer}'s HTML markup.
@author Lionel Armanet @since 1.0 If the model for getting the Progression
is not known at the time of construction, it could be injected later.
The progress bar can be used both actively or passively (e.g. to show progress in a wizard). The active progress bar must be started from within an ajax request (e.g. AjaxButton), as shown below:
form.add(new AjaxButton("button") { protected void onSubmit(AjaxRequestTarget target, Form form) { bar.start(target); // start some task } }
The ProgressBar
is automatically stopped (including AJAX updates) when the isDone()
method of the Progress
object returns true. The bar can be stopped anytime using the stop()
method.
|
|