Class ContentStyleTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.composer.ElementTemplate
com.aquima.interactions.test.templates.composer.ContentStyleTemplate
This template can be used to initialize a content style definition.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ContentStyleTemplate
(ComposerTemplate template, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method may be used to add a child style to this content style.protected boolean
protected boolean
void
setIsDefault
(boolean isDefault) void
setIsRestricted
(boolean isRestricted) This method sets a boolean indicating if the content style restricts the type of child styles that are allowed.com.aquima.interactions.composer.ds.IContentStyleDS
This method converts the template to a data source that can be used to initialize a content style definition.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
-
ContentStyleTemplate
-
-
Method Details
-
setIsRestricted
public void setIsRestricted(boolean isRestricted) This method sets a boolean indicating if the content style restricts the type of child styles that are allowed.- Parameters:
isRestricted
- not restricted means the array of valid children is ignored.
-
isRestricted
protected boolean isRestricted() -
setIsDefault
public void setIsDefault(boolean isDefault) -
isDefaultTemplate
protected boolean isDefaultTemplate() -
addChild
This method may be used to add a child style to this content style.- Parameters:
name
- The name of the child style that is allowed as content of this style.
-
getChildren
-
toDataSource
public com.aquima.interactions.composer.ds.IContentStyleDS toDataSource()This method converts the template to a data source that can be used to initialize a content style definition.- Returns:
- a data source that can be used to initialize a content style definition.
-