Class QHelpContent

java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.help.QHelpContent
All Implemented Interfaces:
QMetaDataObject, Serializable

public class QHelpContent extends Object implements QMetaDataObject
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 Details

    • QHelpContent

      public QHelpContent()
      Constructor
    • QHelpContent

      public QHelpContent(String content)
      Constructor
  • Method Details

    • getContent

      public String getContent()
      Getter for content
    • setContent

      public void setContent(String content)
      Setter for content
    • withContent

      public QHelpContent withContent(String content)
      Fluent setter for content
    • withContentAsHTML

      public QHelpContent withContentAsHTML(String content)
      Fluent setter for content that also sets format as HTML
    • withContentAsText

      public QHelpContent withContentAsText(String content)
      Fluent setter for content that also sets format as TEXT
    • withContentAsMarkdown

      public QHelpContent withContentAsMarkdown(String content)
      Fluent setter for content that also sets format as Markdown
    • getFormat

      public HelpFormat getFormat()
      Getter for format
    • setFormat

      public void setFormat(HelpFormat format)
      Setter for format
    • withFormat

      public QHelpContent withFormat(HelpFormat format)
      Fluent setter for format
    • getRoles

      public Set<HelpRole> getRoles()
      Getter for roles
    • setRoles

      public void setRoles(Set<HelpRole> roles)
      Setter for roles
    • withRoles

      public QHelpContent withRoles(Set<HelpRole> roles)
      Fluent setter for roles
    • withRole

      public QHelpContent withRole(HelpRole role)
      Fluent method to add a role
    • withRoles

      public QHelpContent withRoles(HelpRole... roles)
      Fluent method to add a role