@Tag(value="vaadin-progress-bar") @JsModule(value="@vaadin/vaadin-progress-bar/src/vaadin-progress-bar.js") public abstract class GeneratedVaadinProgressBar<R extends GeneratedVaadinProgressBar<R>> extends Component implements HasStyle, HasTheme
Description copied from corresponding location in WebComponent:
<vaadin-progress-bar>
is a Web Component for progress bars.
<vaadin-progress-bar min="0" max="1" value="0.5"> </vaadin-progress-bar>
The following shadow DOM parts are available for styling:
Part name | Description |
---|---|
bar |
Progress-bar's background |
value |
Progress-bar's foreground |
See ThemableMixin ? how to apply styles for shadow parts
The following custom properties are available:
Custom property | Description | Default |
---|---|---|
--vaadin-progress-value |
current progress value (between 0 and 1) | 0 |
The following state attributes are available for styling:
Attribute | Description | Part name |
---|---|---|
indeterminate |
Set to an indeterminate progress bar | :host |
Constructor and Description |
---|
GeneratedVaadinProgressBar() |
Modifier and Type | Method and Description |
---|---|
void |
addThemeVariants(ProgressBarVariant... variants)
Adds theme variants to the component.
|
protected double |
getMaxDouble()
Description copied from corresponding location in WebComponent:
|
protected double |
getMinDouble()
Description copied from corresponding location in WebComponent:
|
protected double |
getValueDouble()
Description copied from corresponding location in WebComponent:
|
protected boolean |
isIndeterminateBoolean()
Description copied from corresponding location in WebComponent:
|
void |
removeThemeVariants(ProgressBarVariant... variants)
Removes theme variants from the component.
|
protected void |
setIndeterminate(boolean indeterminate)
Description copied from corresponding location in WebComponent:
|
protected void |
setMax(double max)
Description copied from corresponding location in WebComponent:
|
protected void |
setMin(double min)
Description copied from corresponding location in WebComponent:
|
protected void |
setValue(double value)
Description copied from corresponding location in WebComponent:
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
getElement
addAttachListener
addDetachListener
public void addThemeVariants(ProgressBarVariant... variants)
variants
- theme variants to addpublic void removeThemeVariants(ProgressBarVariant... variants)
variants
- theme variants to removeprotected double getValueDouble()
Description copied from corresponding location in WebComponent:
Current progress value.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
value
property from the webcomponentprotected void setValue(double value)
Description copied from corresponding location in WebComponent:
Current progress value.
value
- the double value to setprotected double getMinDouble()
Description copied from corresponding location in WebComponent:
Minimum bound of the progress bar.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
min
property from the webcomponentprotected void setMin(double min)
Description copied from corresponding location in WebComponent:
Minimum bound of the progress bar.
min
- the double value to setprotected double getMaxDouble()
Description copied from corresponding location in WebComponent:
Maximum bound of the progress bar.
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
max
property from the webcomponentprotected void setMax(double max)
Description copied from corresponding location in WebComponent:
Maximum bound of the progress bar.
max
- the double value to setprotected boolean isIndeterminateBoolean()
Description copied from corresponding location in WebComponent:
Indeterminate state of the progress bar. This property takes precedence over other state properties (min, max, value).
This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.
indeterminate
property from the webcomponentprotected void setIndeterminate(boolean indeterminate)
Description copied from corresponding location in WebComponent:
Indeterminate state of the progress bar. This property takes precedence over other state properties (min, max, value).
indeterminate
- the boolean value to setCopyright © 2025. All rights reserved.