Class ProgressBar

    • Constructor Detail

      • ProgressBar

        public ProgressBar()
        Constructs a new object with a scale of 0 to 1, and an initial value of 0.
      • ProgressBar

        public ProgressBar​(double min,
                           double max)
        Constructs a new object with a scale of min to max, and an initial value of min.

        min must be less than max.

        Parameters:
        min - the low end of the scale of progress
        max - the high end of the scale of progress
        Throws:
        IllegalArgumentException - if min is not less than max
      • ProgressBar

        public ProgressBar​(double min,
                           double max,
                           double value)
        Constructs a new object with a scale of min to max, and an initial value of value.

        min must be less than max, and value must be between min and max (inclusive).

        Parameters:
        min - the low end of the scale of progress
        max - the high end of the scale of progress
        value - the initial value
        Throws:
        IllegalArgumentException - if min is not less than max, or value is not between min and max
    • Method Detail

      • getValue

        public double getValue()
        Gets the current value of the progressbar
        Returns:
        the value property of the progressbar
      • getMax

        public double getMax()
        Gets the maximum bound of the progressbar.
        Returns:
        the max property of the progressbar
      • getMin

        public double getMin()
        Gets the minimum bound of the progressbar.
        Returns:
        the min property of the progressbar
      • setIndeterminate

        public void setIndeterminate​(boolean indeterminate)
        Description copied from class: 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).

        Overrides:
        setIndeterminate in class GeneratedVaadinProgressBar<ProgressBar>
        Parameters:
        indeterminate - the boolean value to set
      • isIndeterminate

        public boolean isIndeterminate()
        Get the indeterminate state of the progressbar

        This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.

        Returns:
        the indeterminate property of the progressbar