Package io.wcm.handler.richtext.ui
Class ResourceMultilineText
- java.lang.Object
-
- io.wcm.handler.richtext.ui.ResourceMultilineText
-
@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class) public class ResourceMultilineText extends Object
Generic resource-based model for rendering plain text with line breaks.Optional use parameters when referencing model from Sightly template:
propertyName: Property name in which the text is stored in the resource
-
-
Constructor Summary
Constructors Constructor Description ResourceMultilineText()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMarkup()Returns the formatted text as XHTML markup.booleanisValid()Returns true if multi-line text is present and valid.
-
-
-
Method Detail
-
isValid
public boolean isValid()
Returns true if multi-line text is present and valid.- Returns:
- Text is valid
-
getMarkup
public String getMarkup()
Returns the formatted text as XHTML markup.- Returns:
- Text markup
-
-