Class Paragraph
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.components.Paragraph
- All Implemented Interfaces:
Component
Paragraph component with alignment class management helpers.
Text/alignment configuration is mutable and must finish before sharing. Rendering derives alignment classes without changing stored attributes or children. Compiled templates retain this renderer as a live delegate, so later configuration is reflected in their output. Custom child renderers and request contexts retain their own sharing requirements.
-
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 TypeMethodDescriptioncenter()Aligns paragraph text to the center.getText()justify()Justifies paragraph text.left()Aligns paragraph text to the left (default).render()Renders this component with an empty context.render(RenderContext context) Renders opening tag, text payload, child output, and closing tag.right()Aligns paragraph text to the right.Alias forHtmlTag.addClass(String).Sets the HTML id attribute for this paragraph.Methods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getChildrenStream, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, withAttribute, withChild, withInnerText, withInnerText, withMaxWidth, withMinWidth, withUnsafeHtml, withWidth
-
Constructor Details
-
Paragraph
-
Paragraph
public Paragraph()
-
-
Method Details
-
getText
-
getAlignment
-
withId
-
withClass
-
left
Aligns paragraph text to the left (default). -
center
Aligns paragraph text to the center. -
right
Aligns paragraph text to the right. -
justify
Justifies paragraph text. -
render
Description copied from class:HtmlTagRenders opening tag, text payload, child output, and closing tag.Security contract: slot and plain text are escaped; trusted HTML payload is emitted verbatim.
-
render
-