Class Spinner

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

public class Spinner extends HtmlTag
Loading spinner component with size, color, and optional message.

Mutable and not thread-safe. Size/color/message settings mutate render output. Mutate within a request-scoped flow. For reuse, stop mutating and render as a stable structure with per-request slot/context values.

  • Constructor Details

    • Spinner

      public Spinner()
  • Method Details

    • create

      public static Spinner create()
    • small

      public Spinner small()
    • medium

      public Spinner medium()
    • large

      public Spinner large()
    • withMessage

      public Spinner withMessage(String message)
    • withColor

      public Spinner withColor(String color)
    • render

      public String render(RenderContext context)
      Description copied from class: HtmlTag
      Renders opening tag, text payload, child output, and closing tag.

      Security contract: slot and plain text are escaped; trusted HTML payload is emitted verbatim.

      Specified by:
      render in interface Component
      Overrides:
      render in class HtmlTag
      Parameters:
      context - context used for slot resolution and render policy
      Returns:
      rendered HTML for this component
    • render

      public String render()
      Description copied from interface: Component
      Renders this component with an empty context.
      Returns:
      rendered HTML for this component