Class ContentTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.composer.ContentTemplate
- Direct Known Subclasses:
DocumentTemplate
This template can be used to initialize a content definition.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ContentTemplate
(ComposerTemplate composer, String name) Constructs the content template with the required parameters.protected
ContentTemplate
(ComposerTemplate composer, String name, com.aquima.interactions.foundation.report.IInitializationReport report) -
Method Summary
Modifier and TypeMethodDescriptionaddContainer
(String name) This method may be used to add a container to the content template.addContent
(String name) This method may be used to add a content to the content template.This method may be used to add an image to the content template.This method may be used to add a text to the content template.protected String
protected String
protected String
getName()
protected String
void
setContentStyle
(String contentStyle) This method may be used to override the content style of the content definition.void
setDescription
(String description) This method may be used to override the description of the content definition.void
setPresentationStyle
(String presentationStyle) This method may be used to override the presentation style of the content definition.com.aquima.interactions.composer.ds.IContentDS
This method converts the template to a data source that can be used to initialize a content definition.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
ContentTemplate
Constructs the content template with the required parameters.- Parameters:
name
- The name of the content definition.
-
ContentTemplate
protected ContentTemplate(ComposerTemplate composer, String name, com.aquima.interactions.foundation.report.IInitializationReport report)
-
-
Method Details
-
getName
-
getDescription
-
setDescription
This method may be used to override the description of the content definition.- Parameters:
description
- The description of the content definition.
-
getContentStyle
-
setContentStyle
This method may be used to override the content style of the content definition.- Parameters:
contentStyle
- the content style of the content definition.
-
getPresentationStyle
-
setPresentationStyle
This method may be used to override the presentation style of the content definition.- Parameters:
presentationStyle
- the presentation style of the content definition.
-
addContent
This method may be used to add a content to the content template. When the supplied name is null an inline content definition will be created.- Parameters:
name
- The name of the content definition that is referred to.- Returns:
- The reference template to the content template.
-
addContainer
This method may be used to add a container to the content template. The supplied name may not be null.- Parameters:
name
- The name of the container definition that is referred to.- Returns:
- The reference template to the container template.
-
addText
This method may be used to add a text to the content template. When the supplied name is null an inline text definition will be created.- Parameters:
name
- The name of the text definition that is referred to.- Returns:
- The reference template to the text template.
-
addImage
This method may be used to add an image to the content template.- Parameters:
name
- The name of the image definition that is referred to.- Returns:
- The reference template to the image template.
-
getContents
-
toDataSource
public com.aquima.interactions.composer.ds.IContentDS toDataSource()This method converts the template to a data source that can be used to initialize a content definition.- Returns:
- a data source that can be used to initialize a content definition.
-