Interface HTMLProgressElement

All Superinterfaces:
Element, EventTarget, HTMLElement, InnerHTML, Node, NonDocumentTypeChildNode, ParentNode

public interface HTMLProgressElement extends HTMLElement
Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements.
  • Method Details

    • getLabels

      NodeList getLabels()

      getLabels.

      Returns:
      a NodeList object.
    • getMax

      double getMax()
      Defines the maximum, or "done" value for a progress element.
      Returns:
      a double.
    • setMax

      void setMax(double max)

      setMax.

      Parameters:
      max - a double.
    • getPosition

      double getPosition()
      Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar).
      Returns:
      a double.
    • getValue

      double getValue()
      Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.
      Returns:
      a double.
    • setValue

      void setValue(double value)

      setValue.

      Parameters:
      value - a double.