Usage example:
ProgressBar bar = ProgressBar.create(100).setValue(50).showText();
See also :
public void Progress()
public static Progress create()
public Progress appendChild(ProgressBar bar)
bar
the progress bar to be added
the current Progress instance
public HTMLDivElement element()
public void ProgressBar(int maxValue)
maxValue
The maximum value of the progress bar.
public void ProgressBar(int maxValue, String textExpression)
maxValue
The maximum value of the progress bar.
textExpression
The text expression for the progress bar.
public static ProgressBar create(int maxValue)
maxValue
The maximum value of the progress bar.
A new progress bar instance.
public HTMLDivElement element()
The root HTMLDivElement.
public ProgressBar showText()
The current progress bar instance.
public ProgressBar setValue(double value)
value
The new value for the progress bar.
The current progress bar instance.
public ProgressBar animate()
This method will make the progress bar visually animated.
Returns:
The current progress bar instance.
public ProgressBar striped()
The striped style adds visual stripes across the progress bar.
Returns:
The current progress bar instance.
public double getMaxValue()
The maximum value of the progress bar.
public ProgressBar setMaxValue(double maxValue)
maxValue
The new maximum value for the progress bar.
The current progress bar instance.
public ProgressBar textExpression(String expression)
The text expression is a string that can be evaluated to produce the desired text on the progress bar. The updated text is shown after setting the new expression.
expression
The new text expression to be set.
The current progress bar instance.
public ProgressBar remove()
The current progress bar instance.