Class QHelpContent
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.help.QHelpContent
- All Implemented Interfaces:
QMetaDataObject
,Serializable
,Cloneable
meta-data definition of "Help Content" to show to a user - for use in
a specific "role" (e.g., insert screens but not view screens), and in a
particular "format" (e.g., plain text, html, markdown).
Meant to be assigned to several different pieces of QQQ meta data (fields,
tables, processes, etc), and used as-needed by various frontends.
May evolve something like a "Presentation" attribute in the future - e.g.,
to say "present this one as a tooltip" vs. "present this one as inline text"
May be dynamically added to meta-data via (non-meta-) data - see
HelpContentMetaDataProvider and QInstanceHelpContentManager
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Getter for contentReturn the content as html string, based on its format.Getter for formatgetRoles()
Getter for rolesvoid
setContent
(String content) Setter for contentvoid
setFormat
(HelpFormat format) Setter for formatvoid
Setter for roleswithContent
(String content) Fluent setter for contentwithContentAsHTML
(String content) Fluent setter for content that also sets format as HTMLwithContentAsMarkdown
(String content) Fluent setter for content that also sets format as MarkdownwithContentAsText
(String content) Fluent setter for content that also sets format as TEXTwithFormat
(HelpFormat format) Fluent setter for formatFluent method to add a roleFluent method to add a roleFluent setter for roles
-
Constructor Details
-
QHelpContent
public QHelpContent()Constructor -
QHelpContent
Constructor
-
-
Method Details
-
getContentAsHtml
Return the content as html string, based on its format. Only MARKDOWN actually gets processed (via commonmark) - but TEXT and HTML come out as-is. -
getContent
Getter for content -
setContent
Setter for content -
withContent
Fluent setter for content -
withContentAsHTML
Fluent setter for content that also sets format as HTML -
withContentAsText
Fluent setter for content that also sets format as TEXT -
withContentAsMarkdown
Fluent setter for content that also sets format as Markdown -
getFormat
Getter for format -
setFormat
Setter for format -
withFormat
Fluent setter for format -
getRoles
-
setRoles
-
withRoles
Fluent setter for roles -
withRole
Fluent method to add a role -
withRoles
Fluent method to add a role -
clone
-