Class OrderedList
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.display.OrderedList
- All Implemented Interfaces:
Component
Ordered list component with appended list items.
Mutable and not thread-safe. Items are accumulated and rendered in insertion order. Mutate within a request-scoped flow. For reuse, stop mutating and render as a stable structure with per-request slot/context values.
-
Field Summary
Fields inherited from class HtmlTag
attributes, children, id, innerText, innerTextSlot, selfClosing, tagName, trustedHtml -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends a component list item.Appends a text list item.static OrderedListcreate()Creates a new ordered list.Returns inherited children plus appended list items.reversed()Enables reversed ordering.Appends class token(s).withStart(int start) Sets HTMLstartattribute.Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, render, withAttribute, withChild, withId, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml, withWidth
-
Constructor Details
-
OrderedList
public OrderedList()Creates an ordered list with base classlist.
-
-
Method Details
-
create
-
addItem
Appends a text list item.- Parameters:
text- item text- Returns:
- this list
-
addItem
Appends a component list item.- Parameters:
component- item component- Returns:
- this list
-
withClass
Appends class token(s). -
withStart
Sets HTMLstartattribute.- Parameters:
start- starting number- Returns:
- this list
-
reversed
-
getChildrenStream
Returns inherited children plus appended list items.- Overrides:
getChildrenStreamin classHtmlTag- Returns:
- child stream
-