Class Row
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.layout.Row
- All Implemented Interfaces:
Component
Horizontal layout container for the framework row/column grid.
This type is mutable and not thread-safe. Configure and render within a single request (or other confined lifecycle) and do not share one instance across concurrent threads.
Non-Column children passed to withChild(Component) are wrapped in a
default div.col to preserve row semantics.
-
Field Summary
Fields inherited from class HtmlTag
attributes, children, id, innerText, innerTextSlot, selfClosing, tagName, trustedHtml -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends a preconfiguredColumnwithout additional wrapping.copy()Creates a shallow copy of this row's current attributes, text payload, and children.Replaces class attribute withrow align-<alignment>.Appends a child component.Alias forHtmlTag.addClass(String).withComponents(Component... components) Appends all components to this row in argument order.Replaces class attribute withrow gap-<gap>.Sets theidattribute.withJustify(String justify) Replaces class attribute withrow justify-<justify>.Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getChildrenStream, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, render, withAttribute, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml, withWidth
-
Constructor Details
-
Row
public Row()Creates an empty row with base classrow.
-
-
Method Details
-
withComponents
-
withId
-
withChild
-
addColumn
-
copy
Creates a shallow copy of this row's current attributes, text payload, and children.Child components are reused, not cloned. This is intended for wrappers that need to preserve a configured row while adding request-local structure during render.
- Returns:
- copied row
-
withGap
-
withAlign
-
withJustify
-
withClass
-