Class QHelpContent
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.help.QHelpContent
- All Implemented Interfaces:
QMetaDataObject
,Serializable
meta-data defintion 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 TypeMethodDescriptionGetter for contentGetter 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
-
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
-