1. Domino UI
  2. Components
  3. Progress bars
Top Basic Colored Striped Animated Stacked Docs

Progress bars

Represents a visual progress bar element.

Usage example:

 
 ProgressBar bar = ProgressBar.create(100).setValue(50).showText();
 

See also :

Examples

Basic progress bars Progress bars with custom progress text.

Colored progress bars Can have different colors for progress bars.

Striped progress bars Adds striped decoration to progress bars.

Animated progress bars Adds animation to progress bars.

Stacked progress bars We can stack multiple progress bars in the same progress component.

API Docs: Progress

Constructors

public void Progress()
Creates a new Progress instance.

Static methods

public static Progress create()
Static factory method to create a new instance of Progress.

Returns:

a new instance of Progress

Public methods

public Progress appendChild(ProgressBar bar)
Appends a ProgressBar to this progress component.

bar

the progress bar to be added



Returns:

the current Progress instance

public HTMLDivElement element()
Check super implementation documentation.

API Docs: ProgressBar

Constructors

public void ProgressBar(int maxValue)
Constructs a progress bar with the specified max value.

maxValue

The maximum value of the progress bar.

public void ProgressBar(int maxValue, String textExpression)
Constructs a progress bar with the specified max value and text expression.

maxValue

The maximum value of the progress bar.

textExpression

The text expression for the progress bar.

Static methods

public static ProgressBar create(int maxValue)
Factory method to create a progress bar with the specified max value.

maxValue

The maximum value of the progress bar.



Returns:

A new progress bar instance.

Public methods

public HTMLDivElement element()
Returns the root HTMLDivElement for this progress bar.

Returns:

The root HTMLDivElement.

public ProgressBar showText()
Display the progress bar's value as text.

Returns:

The current progress bar instance.

public ProgressBar setValue(double value)
Set the progress bar's current value.

value

The new value for the progress bar.



Returns:

The current progress bar instance.

public ProgressBar animate()
Animates the progress bar by applying a striped style and activating it.

This method will make the progress bar visually animated.

Returns:

The current progress bar instance.

public ProgressBar striped()
Applies a striped style to the progress bar.

The striped style adds visual stripes across the progress bar.

Returns:

The current progress bar instance.

public double getMaxValue()
Retrieves the maximum value for the progress bar.

Returns:

The maximum value of the progress bar.

public ProgressBar setMaxValue(double maxValue)
Set the progress bar's maximum value.

maxValue

The new maximum value for the progress bar.



Returns:

The current progress bar instance.

public ProgressBar textExpression(String expression)
Sets a new text expression for the progress bar and then displays the text.

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.



Returns:

The current progress bar instance.

public ProgressBar remove()
Removes the progress bar from its parent.

Returns:

The current progress bar instance.

We are a group of passionate people who love what we do

Donate & Support Us