Interface IContent<C extends IContent<C>>

All Superinterfaces:
IHasId<C>
All Known Subinterfaces:
IAccordionSection, IAppForm, IAppPage, IAppSection, ICell, IEventDataSection, IForm, IFormContent, IOnlineAppPage, IPage, ISection, ISectionContent, ITimelineItem, IVerticalContainer

public interface IContent<C extends IContent<C>> extends IHasId<C>
  • Method Details

    • text

      default IText text(TextFieldType type, String text, String... tokens)
      Text block can be plain, preformatted or a header
      Parameters:
      text - to appear in the text block
      type - of text block: title, header, paragraph, preformatted, markdown
      tokens - see text tokens documentation at Text.of(String, String...)
      Returns:
      this component configuration
    • text

      default IText text(TextFieldType type, IString text)
      Text block can be plain, preformatted or a header
      Parameters:
      text - to appear in the text block
      type - of text block: title, header, paragraph, preformatted, markdown
      Returns:
      this component configuration
    • text

      default IText text(String text, String... tokens)
      Parameters:
      text - The text to show
      tokens - see text tokens documentation at Text.of(String, String...)
      Returns:
      this component configuration
    • title

      default IText title(IString text)
      Parameters:
      text - The translatable text to appear as a title
      Returns:
      this component configuration
    • title

      default IText title(String text)
      Parameters:
      text - The text to appear as a title
      Returns:
      this component configuration
    • header

      default IText header(IString text)
      Parameters:
      text - The translatable text to appear as a header
      Returns:
      this component configuration
    • header

      default IText header(String text)
      Parameters:
      text - The text to appear as a header
      Returns:
      this component configuration
    • paragraph

      default IText paragraph(IString text)
      Parameters:
      text - The translatable text to appear as a paragraph
      Returns:
      this component configuration
    • paragraph

      default IText paragraph(String text)
      Parameters:
      text - The text to appear as a paragraph
      Returns:
      this component configuration
    • iconButton

      default IIconButton iconButton(Icon icon, String text, String... tokens)
      Parameters:
      icon - The icon
      text - the text containing tokens
      tokens - see text tokens documentation at Text.of(String, String...)
      Returns:
      this component configuration
    • button

      default IButton button(String label, String... tokens)
      Parameters:
      label - the label containing tokens
      tokens - see text tokens documentation at Text.of(String, String...)
      Returns:
      this component configuration
    • copyButton

      default ICopyButton copyButton(long data)
      A button which places the data in the users clipboard when clicked
      Parameters:
      data - the data to be copied
      Returns:
      this component configuration
    • text

      IText text(IString text)
      Parameters:
      text - to appear in the text block
      Returns:
      this component configuration
    • image

      IImage image(String url)
      Parameters:
      url - url of the image
      Returns:
      this component configuration
    • image

      IImage image(byte[] bytes, String contentType)
      Parameters:
      bytes - The bytes
      contentType - File format. E.g. image/png, image/jpg, etc.
      Returns:
      this component configuration
    • button

      IButton button(IString label)
      Parameters:
      label - to appear in the button
      Returns:
      this component configuration
    • copyButton

      ICopyButton copyButton(String data)
      A button which places the data in the users clipboard when clicked
      Parameters:
      data - the data to be copied
      Returns:
      this component configuration
    • icon

      IIcon icon(Icon icon)
      Parameters:
      icon - The icon
      Returns:
      this component configuration
    • iconButton

      IIconButton iconButton(Icon icon, IString text)
      Parameters:
      icon - The icon
      text - the text containing tokens
      Returns:
      this component configuration
    • dateTime

      IDateTimeData dateTime(ZonedDateTime dateTime)
      Parameters:
      dateTime - The date to show
      Returns:
      Date time component on which you can set additional parameters
    • number

      INumeric number(int number)
      Parameters:
      number - The number to show
      Returns:
      A component on which you can set additional parameters
    • number

      INumeric number(double number)
      Parameters:
      number - The number to show
      Returns:
      A component on which you can set additional parameters
    • section

      void section(Props props, Consumer<C> consumer)
      Parameters:
      props - section properties
      consumer - Use this consumer to set the contents of this section
    • section

      void section(Consumer<C> consumer)
      Parameters:
      consumer - Use this consumer to set the contents of this section
    • itemList

      IItemList itemList(Items items)
      Parameters:
      items - list of items to display
      Returns:
      this component configuration
    • tree

      void tree(Consumer<ITree> tree)
      Parameters:
      tree - component to populate with child items