Class ImageTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.composer.ElementTemplate
com.aquima.interactions.test.templates.composer.ImageTemplate
This template class can be used to initialize a image definition.
- Since:
- 6.0
- Author:
- Jon van Leuven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.aquima.interactions.composer.model.ImageContentType
protected String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionImageTemplate
(String name) Constructs the template with the required parameters.protected
ImageTemplate
(String name, com.aquima.interactions.foundation.report.IInitializationReport report) ImageTemplate
(String name, String qrCodeContent, com.aquima.interactions.foundation.report.IInitializationReport report) -
Method Summary
Modifier and TypeMethodDescriptioncom.aquima.interactions.composer.model.ImageContentType
protected byte[]
void
setImageContentType
(com.aquima.interactions.composer.model.ImageContentType imageContentType) void
setImageData
(byte[] binaryData) This method sets the binary data of the image.void
setQrCodeContent
(String qrCodeContent) com.aquima.interactions.composer.ds.IImageDS
This method converts the template to a data source that can be used to initialize a text object.Methods inherited from class com.aquima.interactions.test.templates.composer.ElementTemplate
getName, getPresentationStyles
Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Field Details
-
qrCodeContent
-
imageContentType
protected com.aquima.interactions.composer.model.ImageContentType imageContentType
-
-
Constructor Details
-
ImageTemplate
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
-
-
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
-
getQrCodeContent
-
getImageContentType
public com.aquima.interactions.composer.model.ImageContentType getImageContentType() -
setImageContentType
public void setImageContentType(com.aquima.interactions.composer.model.ImageContentType imageContentType)
-