Class QuoteModule
java.lang.Object
io.mindspice.simplypages.core.HtmlTag
io.mindspice.simplypages.core.Module
io.mindspice.simplypages.modules.QuoteModule
- All Implemented Interfaces:
Component
Module for rendering emphasized quote/testimonial content.
Mutability and thread-safety: mutable and not thread-safe. Mutate within a request-scoped flow. For reuse, stop mutating shared instances and render stable structures with per-request context data.
-
Field Summary
Fields inherited from class HtmlTag
attributes, children, id, innerText, innerTextSlot, selfClosing, tagName, trustedHtml -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidComposes module structure.centered()Centers the quote content.static QuoteModulecreate()large()Makes the quote display in a larger size.withAttribution(String attribution) Sets additional attribution information (title, organization, etc.).withAuthor(String author) Sets the author of the quote.Sets the date of the quote.withModuleId(String moduleId) Sets module id and synchronizes the underlyingidattribute.Sets the quote text.Sets optional title consumed byModule.buildContent()implementations.Methods inherited from class Module
build, getModuleId, getTitle, invalidateContent, rebuildContent, render, render, withClass, withMaxWidth, withMinWidth, withWidthMethods inherited from class HtmlTag
addClass, addStyle, addTrustedStyle, getChildrenStream, getId, hxDelete, hxGet, hxInclude, hxPatch, hxPost, hxPushUrl, hxPut, hxScrollTargetTop, hxSwap, hxTarget, hxTrigger, withAttribute, withChild, withId, withInnerText, withInnerText, withUnsafeHtml
-
Constructor Details
-
QuoteModule
public QuoteModule()
-
-
Method Details
-
create
-
withTitle
Description copied from class:ModuleSets optional title consumed byModule.buildContent()implementations. -
withModuleId
Description copied from class:ModuleSets module id and synchronizes the underlyingidattribute.- Overrides:
withModuleIdin classModule
-
withQuote
Sets the quote text.- Parameters:
quote- the quote content
-
withAuthor
Sets the author of the quote.- Parameters:
author- the author name
-
withAttribution
Sets additional attribution information (title, organization, etc.).- Parameters:
attribution- attribution details
-
withDate
Sets the date of the quote.- Parameters:
date- the quote date
-
large
Makes the quote display in a larger size. -
centered
Centers the quote content. -
buildContent
protected void buildContent()Description copied from class:ModuleComposes module structure.Called at most once by
Module.build()unlessModule.rebuildContent()is invoked. Do not rely on this method for per-request mutation.- Specified by:
buildContentin classModule
-