@NpmPackage(value="@vaadin/vaadin-progress-bar", version="1.3.0") public class ProgressBar extends GeneratedVaadinProgressBar<ProgressBar> implements HasSize
vaadin-progress-bar
element.Constructor and Description |
---|
ProgressBar()
Constructs a new object with a scale of 0 to 1, and an initial value of
0.
|
ProgressBar(double min,
double max)
Constructs a new object with a scale of
min to max , and
an initial value of min . |
ProgressBar(double min,
double max,
double value)
Constructs a new object with a scale of
min to max , and
an initial value of value . |
Modifier and Type | Method and Description |
---|---|
double |
getMax()
Gets the maximum bound of the progressbar.
|
double |
getMin()
Gets the minimum bound of the progressbar.
|
double |
getValue()
Gets the current value of the progressbar
|
boolean |
isIndeterminate()
Get the indeterminate state of the progressbar
|
void |
setIndeterminate(boolean indeterminate)
Description copied from corresponding location in WebComponent:
|
void |
setMax(double max)
Sets the maximum bound of the progressbar.
|
void |
setMin(double min)
Sets the minimum bound of the progressbar
|
void |
setValue(double value)
Sets value to the progressbar.
|
addThemeVariants, getMaxDouble, getMinDouble, getValueDouble, isIndeterminateBoolean, removeThemeVariants
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
getCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
getElement
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
addAttachListener
addDetachListener
public ProgressBar()
public ProgressBar(double min, double max)
min
to max
, and
an initial value of min
.
min
must be less than max
.
min
- the low end of the scale of progressmax
- the high end of the scale of progressIllegalArgumentException
- if min
is not less than max
public ProgressBar(double min, double max, double value)
min
to max
, and
an initial value of value
.
min
must be less than max
, and value
must be
between min
and max
(inclusive).
min
- the low end of the scale of progressmax
- the high end of the scale of progressvalue
- the initial valueIllegalArgumentException
- if min
is not less than max
, or value
is not between min
and max
public void setValue(double value)
setValue
in class GeneratedVaadinProgressBar<ProgressBar>
value
- the double value to setpublic double getValue()
value
property of the progressbarpublic void setMax(double max)
setMax
in class GeneratedVaadinProgressBar<ProgressBar>
max
- the double value to setpublic double getMax()
max
property of the progressbarpublic void setMin(double min)
setMin
in class GeneratedVaadinProgressBar<ProgressBar>
min
- the double value to setpublic double getMin()
min
property of the progressbarpublic void setIndeterminate(boolean indeterminate)
GeneratedVaadinProgressBar
Description copied from corresponding location in WebComponent:
Indeterminate state of the progress bar. This property takes precedence over other state properties (min, max, value).
setIndeterminate
in class GeneratedVaadinProgressBar<ProgressBar>
indeterminate
- the boolean value to setpublic boolean isIndeterminate()
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 of the progressbarCopyright © 2025. All rights reserved.