Class ProgressBar
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.display.ProgressBar
- All Implemented Interfaces:
Component
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class HtmlTag
attributes, children, id, innerText, innerTextSlot, selfClosing, tagName, trustedHtml -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanimated()static ProgressBarcreate(int value) error()Returns children to render, in order.info()primary()striped()success()warning()withHeight(String height) Sets wrapper height through raw style assembly.Sets visible fill text and the accessible name.withMax(int max) Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, render, withAttribute, withChild, withClass, withId, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml, withWidth
-
Constructor Details
-
ProgressBar
public ProgressBar(int value)
-
-
Method Details
-
create
-
withLabel
Sets visible fill text and the accessible name. For an external label or a different name, setaria-labelledbyoraria-labelwithwithAttribute. -
withMax
-
-
success
-
warning
-
error
-
info
-
striped
-
animated
-
withHeight
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
Description copied from class:HtmlTagReturns children to render, in order.Extension point: subclasses may override to filter/reorder children.
- Overrides:
getChildrenStreamin classHtmlTag
-