Class ElementReference

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.composer.ElementReference
Direct Known Subclasses:
AssetReference, ButtonReference, Reference

public abstract class ElementReference extends AbstractReportingTemplate
Base class for reference templates.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • ElementReference

      protected ElementReference(com.aquima.interactions.foundation.report.IInitializationReport report, String name)
  • Method Details

    • setPresentationStyle

      public void setPresentationStyle(String style)
      This method may be used to override the style of the referred element.
      Parameters:
      style - the style of the referred element.
    • setPresentationStyle

      public void setPresentationStyle(String precondition, String style)
    • addPresentationStyle

      public void addPresentationStyle(String style)
      This method may be used to add a style of the referred element.
      Parameters:
      style - add the style of the referred element.
    • addPresentationStyle

      public void addPresentationStyle(String precondition, String style)
    • getPresentationStyles

      protected String[] getPresentationStyles()
    • getPresentationStyleCondition

      protected String getPresentationStyleCondition(String presentationStyle)
    • setReadonly

      public void setReadonly(boolean readOnly)
      This method may be used to specify if the referred element is read-only.
      Parameters:
      readOnly - Boolean indicating if the referred element is read-only.
    • getReadonlyCondition

      protected String getReadonlyCondition()
    • setReadonlyCondition

      public void setReadonlyCondition(String condition)
      This method may be used to override the condition that should be used to determine if the referred element is read-only.
      Parameters:
      condition - the condition that should be used to determine if the referred element is read-only.
    • getCondition

      protected String getCondition()
    • setCondition

      public void setCondition(String condition)
      This method may be used to override the condition that should be used to determine if the referred element is visible.
      Parameters:
      condition - the condition that should be used to determine if the referred element is visible.
    • getName

      protected String getName()
    • toDataSource

      public abstract com.aquima.interactions.composer.ds.IReferenceDS toDataSource()
      This method converts the template to a data source that can be used to initialize a containment reference.
      Returns:
      a data source that can be used to initialize a containment reference.
    • getContentStyle

      protected String getContentStyle()