Class Progress


@Marshalled(typeName="progress") public class Progress extends HtmlElementMixed<Progress>
DTO for an HTML <progress> element.

The progress element represents the completion progress of a task. It is used to display the progress of an operation, such as file uploads, downloads, or any other task that has a defined completion state. The progress element can show both determinate progress (when the total amount of work is known) and indeterminate progress (when the total amount of work is unknown). It is typically rendered as a progress bar that fills up as the task progresses.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple progress bar Progress simple = progress() .value(50) .max(100); // Progress with styling Progress styled = progress() .class_("file-upload-progress") .value(75) .max(100); // Progress with complex content Progress complex = progress("60% complete") .value(60) .max(100); // Progress with ID Progress withId = progress() .id("download-progress") .value(30) .max(100); // Progress with styling Progress styled2 = progress() .style("width: 300px; height: 20px;") .value(40) .max(100); // Progress with multiple attributes Progress multiple = progress("85% complete") .value(85) .max(100) .title("Upload Progress: 85%"); // Progress with form Progress withForm = progress() .form("upload-form") .value(25) .max(100); // Indeterminate progress Progress indeterminate = new Progress() .children("Loading...");

See Also:
  • Constructor Details

    • Progress

      public Progress()
      Creates an empty Progress element.
    • Progress

      public Progress(Object... children)
      Creates a Progress element with the specified child nodes.
      Parameters:
      children - The child nodes. Must not be null.
  • Method Details

    • max

      public Progress max(Object value)
      max attribute.

      Upper bound of range.

      Parameters:
      value - The new value for this attribute. Typically a Number or String. Can be null to unset the attribute.
      Returns:
      This object.
    • value

      public Progress value(Object value)
      value attribute.

      Current value of the element.

      Parameters:
      value - The new value for this attribute. Typically a Number or String. Can be null to unset the attribute.
      Returns:
      This object.