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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Getter for clientChannelGetter for codeContentGetter for contentReturn the content as html string, based on its format.Getter for formatbooleanGetter for fromDataGetter for permissionNamePlain text for search and derived summaries; never includes markup.getRoles()Getter for rolesGetter for summaryExplicit summary, or the first plain-text sentence capped at 200 characters.voidsetClientChannel(String clientChannel) Setter for clientChannelvoidsetCodeContent(QHelpContent codeContent) Setter for codeContentvoidsetContent(String content) Setter for contentvoidsetFormat(HelpFormat format) Setter for formatvoidsetFromData(boolean fromData) Setter for fromDatavoidsetPermissionName(String permissionName) Setter for permissionNamevoidSetter for rolesvoidsetSummary(String summary) Setter for summarywithClientChannel(String clientChannel) Fluent setter for clientChannelwithCodeContent(QHelpContent codeContent) Fluent setter for codeContentwithContent(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 formatwithFromData(boolean fromData) Fluent setter for fromDatawithPermissionName(String permissionName) Fluent setter for permissionNameFluent method to add a roleFluent method to add a roleFluent setter for roleswithSummary(String summary) Fluent setter for summary
-
Field Details
-
SLOT_HELP
- See Also:
-
-
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
-
getSummary
Getter for summary -
setSummary
Setter for summary -
withSummary
Fluent setter for summary -
getPermissionName
Getter for permissionName -
setPermissionName
Setter for permissionName -
withPermissionName
Fluent setter for permissionName -
getClientChannel
Getter for clientChannel -
setClientChannel
Setter for clientChannel -
withClientChannel
Fluent setter for clientChannel -
getFromData
public boolean getFromData()Getter for fromData -
setFromData
public void setFromData(boolean fromData) Setter for fromData -
withFromData
Fluent setter for fromData -
getCodeContent
Getter for codeContent -
setCodeContent
Setter for codeContent -
withCodeContent
Fluent setter for codeContent -
getPlainText
Plain text for search and derived summaries; never includes markup. -
getSummaryOrDerived
Explicit summary, or the first plain-text sentence capped at 200 characters.
-