Class ContainerTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.composer.ElementTemplate
com.aquima.interactions.test.templates.composer.ContainerTemplate
- Direct Known Subclasses:
PageTemplate
Template that can be used to initialize a container definition.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ContainerTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, ComposerTemplate composer, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllowedChannel
(String channel) This method may be used to add a channel that is allowed to display the container.void
addAllowedRole
(String role) This method may be used to add a role that is allowed to view the container.This method may be used to add a asset to this container.This method may be used to add a button to this container.addContainer
(String name) This method may be used to add a container to this container.addContent
(String name) This method may be used to add a content element to this container.void
addEventMapping
(String containerEventName, String flowEventName) This method may be used to add a eventMapping to the container.void
addEventMapping
(String containerEventName, String flowEventName, String... parameters) addField
(FieldTemplate field) This method may be used to add a field template to this container.This method may be used to add a field to this container.This method may be used to add an image to this container.This method may be used to add an inline container to this container.void
addParameter
(String key, String strValue) This method may be used to add a parameter for the container.void
addPortalEventMapping
(String portalEventName, String flowEventName) This method may be used to add a portal event mapping to the page.void
addProperty
(String key, String strValue) This method may be used to add a property to the container.void
addReference
(ElementReference reference) This method may be used to directly add an element reference to an already defined element.This method may be used to add a text to this container.protected List
<ElementReference> contents()
protected ComposerTemplate
protected String
protected com.aquima.interactions.foundation.text.IMultilingualText
protected String[]
protected ParametersTemplate
protected String
protected boolean
void
setContentStyle
(String contentStyle) This method may be used to set the content style of the container.void
setDisplayText
(com.aquima.interactions.foundation.text.IMultilingualText text) This method may be used to override the display text of the container.void
setDisplayText
(String text) This method may be used to override the display text of the container.void
setExitEvents
(String... exitEvents) This method may be used to override the possible exit events for this container.void
setParameters
(com.aquima.interactions.foundation.IParameters parameters) This method may be used to set all the parameters of the container at once.void
setParameters
(ParametersTemplate parameters) This method may be used to set all the parameters of the container at once.void
setTypedParameters
(com.aquima.interactions.portal.ITypedParameters parameters, boolean allowEmpty) This method may be used to set all the typed parameters of the container at once.void
setTypeName
(String type) This method may be used to override the type of the container.com.aquima.interactions.composer.ds.IContainerDS
This method converts the template to a data source that can be used to initialize a container definition.com.aquima.interactions.portal.ds.IContainerExpanderDS
This method returns the dynamic container datasource if this container is a dynamic container.Methods inherited from class com.aquima.interactions.test.templates.composer.ElementTemplate
getName, getPresentationStyles
Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
ContainerTemplate
protected ContainerTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, ComposerTemplate composer, String name)
-
-
Method Details
-
getComposer
-
getTypeName
-
setTypeName
This method may be used to override the type of the container.- Parameters:
type
- the type of the container.
-
getDisplayText
protected com.aquima.interactions.foundation.text.IMultilingualText getDisplayText() -
setDisplayText
This method may be used to override the display text of the container.- Parameters:
text
- The display text of the container.
-
setDisplayText
public void setDisplayText(com.aquima.interactions.foundation.text.IMultilingualText text) This method may be used to override the display text of the container.- Parameters:
text
- The display text of the container.- Since:
- 8.4
-
setTypedParameters
public void setTypedParameters(com.aquima.interactions.portal.ITypedParameters parameters, boolean allowEmpty) This method may be used to set all the typed parameters of the container at once.- Parameters:
parameters
- The parameters for the container.
-
addProperty
This method may be used to add a property to the container.- Parameters:
key
- The name of the property.strValue
- The value of the property.
-
getProperties
-
addEventMapping
This method may be used to add a eventMapping to the container.- Parameters:
containerEventName
- the name of the event in the containerflowEventName
- the name of the event in the flow
-
addEventMapping
-
getEventMappings
-
addPortalEventMapping
This method may be used to add a portal event mapping to the page.- Parameters:
portalEventName
- The name of the portalEvent.flowEventName
- The name of the event in the flow.
-
getPortalEventMappings
-
addParameter
This method may be used to add a parameter for the container.- Parameters:
key
- The name of the parameter.strValue
- The value of the parameter.
-
getParameters
-
setParameters
public void setParameters(com.aquima.interactions.foundation.IParameters parameters) This method may be used to set all the parameters of the container at once. The parameters may contain only value parameters. SeesetTypedParameters(ITypedParameters, boolean)
for using value/expression/reference parameters.- Parameters:
parameters
- The parameters for the container.
-
setParameters
This method may be used to set all the parameters of the container at once.- Parameters:
parameters
- The parameters for the container.
-
contents
-
addAllowedRole
This method may be used to add a role that is allowed to view the container. *- Parameters:
role
- a role that is allowed to view the container.
-
getAllowedRoles
-
addAllowedChannel
This method may be used to add a channel that is allowed to display the container.- Parameters:
channel
- a channel that is allowed to display the container.
-
getAllowedChannels
-
addAsset
This method may be used to add a asset to this container.- Parameters:
name
- The name of the asset that should be added.- Returns:
- Template representing the reference to the added element.
-
addText
This method may be used to add a text to this container.
Note:
This method can be used to add a reference to a "document" text object to the container, this is not an asset. To add a (TSL) asset, use the addAsset method.
- Parameters:
name
- The name of the text that should be added.- Returns:
- Template representing the reference to the added element.
-
addContent
This method may be used to add a content element to this container.
Note:
This method can be used to add a reference to a "document" content object to the container, this is not an asset. To add a (TSL) asset, use the addAsset method.
- Parameters:
name
- The name of the text that should be added.- Returns:
- Template representing the reference to the added element.
-
addField
This method may be used to add a field to this container.- Parameters:
name
- The name of the field that should be added.- Returns:
- Template representing the reference to the added element.
-
addField
This method may be used to add a field template to this container.- Parameters:
field
- The field template of the field that should be added.- Returns:
- Template representing the reference to the added element.
-
addImage
This method may be used to add an image to this container.- Parameters:
name
- The name of the image that should be added.- Returns:
- Template representing the reference to the added element.
-
addButton
This method may be used to add a button to this container.- Parameters:
name
- The name of the button that should be added.- Returns:
- Template representing the reference to the added element.
-
addContainer
This method may be used to add a container to this container.- Parameters:
name
- The name of the container that should be added.- Returns:
- Template representing the reference to the added element.
-
addInlineContainer
This method may be used to add an inline container to this container.- Returns:
- Container template representing the added container.
-
addReference
This method may be used to directly add an element reference to an already defined element. warning: This method does not check if the reference is valid, so use with care.- Parameters:
reference
- The reference that should be added.
-
toDataSource
public com.aquima.interactions.composer.ds.IContainerDS toDataSource()This method converts the template to a data source that can be used to initialize a container definition.- Returns:
- a data source that can be used to initialize a container definition.
-
getExitEvents
-
setExitEvents
This method may be used to override the possible exit events for this container.- Parameters:
exitEvents
- The possible exit events.
-
toDynamicContainerDS
public com.aquima.interactions.portal.ds.IContainerExpanderDS toDynamicContainerDS()This method returns the dynamic container datasource if this container is a dynamic container. If this container is no dynamic container, null will be returned.- Returns:
- The dynamic container datasource, may be null.
-
isDynamic
protected boolean isDynamic() -
getContentStyle
-
setContentStyle
This method may be used to set the content style of the container.- Parameters:
contentStyle
- The content style of the container.
-