Interface PresentationVariant
-
- All Superinterfaces:
Presentation
,Wrapper
public interface PresentationVariant extends Presentation
This interface is needed to make the wrapper registry work with our internal PresentationVariantImpl so that we can wrap presentation variant objects to look like normal presentation objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getName()
Returns the name of the presentation variant itself, without the prefix of the parent presentation.Presentation
getPresentation()
Returns the presentation to which this variant belongs.List<PresentationVariantPropertyValue>
getPropertyValues()
Returns the list of all property values assigned to this presentation variant.PresentationVariantPropertyValue
setPropertyValue(PresentationVariantPropertyDefinition definition, String name, String value)
Appends a property value to this variant for the specified definition.-
Methods inherited from interface nl.gx.webmanager.cms.presentation.Presentation
createPresentationVariant, getContentType, getDisplayName, getFrames, getIdentifier, getImage, getImageByProperty, getLocation, getLocation, getPresentationVariant, getPresentationVariants, getPropertyDataType, getPropertyDefinitions, getPropertyValue, getRanking, getScopes, getTemplateName, getWebsite, isAvailable, render
-
-
-
-
Method Detail
-
getName
String getName()
Returns the name of the presentation variant itself, without the prefix of the parent presentation.- Returns:
- the name of the presentation variant itself, without the prefix of the parent presentation
-
getPresentation
Presentation getPresentation()
Returns the presentation to which this variant belongs.- Returns:
- the presentation to which this variant belongs
-
getPropertyValues
List<PresentationVariantPropertyValue> getPropertyValues()
Returns the list of all property values assigned to this presentation variant.- Returns:
- list of all property values assigned to this presentation variant. Returns an empty list if it has no property values.
-
setPropertyValue
PresentationVariantPropertyValue setPropertyValue(PresentationVariantPropertyDefinition definition, String name, String value)
Appends a property value to this variant for the specified definition.- Parameters:
definition
- The property definition to append the property for. If this presentation variant already contains a property for this definition, this property value is overwritten. If it does not exist, it is created.name
- The name of the property valuevalue
- The value to set- Returns:
-
-