Class ProgressBar

java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.display.ProgressBar
All Implemented Interfaces:
Component

public class ProgressBar extends HtmlTag
Progress bar component with configurable max, label, color, and animation flags.

Mutable and not thread-safe. Value/style flags are read when child markup is built. Mutate within a request-scoped flow. For reuse, stop mutating and render as a stable structure with per-request slot/context values.

  • Constructor Details

    • ProgressBar

      public ProgressBar(int value)
  • Method Details

    • create

      public static ProgressBar create(int value)
    • withLabel

      public ProgressBar withLabel(String label)
      Sets visible fill text and the accessible name. For an external label or a different name, set aria-labelledby or aria-label with withAttribute.
    • withMax

      public ProgressBar withMax(int max)
    • primary

      public ProgressBar primary()
    • success

      public ProgressBar success()
    • warning

      public ProgressBar warning()
    • error

      public ProgressBar error()
    • info

      public ProgressBar info()
    • striped

      public ProgressBar striped()
    • animated

      public ProgressBar animated()
    • withHeight

      public ProgressBar withHeight(String height)
      Sets wrapper height through raw style assembly. Supply an application-controlled or separately CSS-context-validated value; declaration separators are retained. This does not use addStyle's breakout check or the width helpers' restricted token grammar.
    • getChildrenStream

      protected Stream<Component> getChildrenStream()
      Description copied from class: HtmlTag
      Returns children to render, in order.

      Extension point: subclasses may override to filter/reorder children.

      Overrides:
      getChildrenStream in class HtmlTag