public class ImageTemplate extends ElementTemplate
This template class can be used to initialize a image definition.
Since:
6.0
Author:
Jon van Leuven
  • Field Details

    • qrCodeContent

      protected String qrCodeContent
    • imageContentType

      protected com.aquima.interactions.composer.model.ImageContentType imageContentType
  • Constructor Details

    • ImageTemplate

      public ImageTemplate(String name)
      Constructs the template with the required parameters.
      Parameters:
      name - The name of the text object.
    • ImageTemplate

      protected ImageTemplate(String name, com.aquima.interactions.foundation.report.IInitializationReport report)
    • ImageTemplate

      public ImageTemplate(String name, String qrCodeContent, com.aquima.interactions.foundation.report.IInitializationReport report)
  • Method Details

    • setImageData

      public void setImageData(byte[] binaryData)
      This method sets the binary data of the image.
      Parameters:
      binaryData - Byte array containing image data.
    • getImageData

      protected byte[] getImageData()
    • toDataSource

      public com.aquima.interactions.composer.ds.IImageDS toDataSource()
      This method converts the template to a data source that can be used to initialize a text object.
      Returns:
      a data source that can be used to initialize a text object.
    • setQrCodeContent

      public void setQrCodeContent(String qrCodeContent)
    • getQrCodeContent

      public String getQrCodeContent()
    • getImageContentType

      public com.aquima.interactions.composer.model.ImageContentType getImageContentType()
    • setImageContentType

      public void setImageContentType(com.aquima.interactions.composer.model.ImageContentType imageContentType)