Class GuideTermsAndConditions

  • All Implemented Interfaces:
    FDField, StyledFDField, java.io.Serializable, Use

    public class GuideTermsAndConditions
    extends GuideField
    GuideTermsAndConditions class encapsulates basic properties of the adaptive forms Terms and Conditions component. Some of the properties that it encapsulates are listed below:
    • Text content of Terms and condition
    • Link Text for Terms and condition
    • Screen reader text for Terms and condition
    Since:
    AEM 6.0
    See Also:
    Serialized Form
    • Constructor Detail

      • GuideTermsAndConditions

        public GuideTermsAndConditions()
    • Method Detail

      • getStyles

        public java.lang.String getStyles()
        Description copied from class: GuideNode
        Returns the string containing the width and height property represented as an inline CSS rule.
        Overrides:
        getStyles in class GuideNode
        Returns:
        string containing width and height as inline CSS styl
      • getTncTextContent

        public java.lang.String getTncTextContent()
        Returns the text content of terms and conditions component configured in authoring dialog
        Returns:
        String representing the terms and condition text content
      • getLinkText

        public java.util.List<java.lang.String> getLinkText()
        Returns the link text of terms and conditions component configured in authoring dialog
        Returns:
        String representing link text
      • getShowLink

        public java.lang.Boolean getShowLink()
      • getShowApprovalOption

        public java.lang.Boolean getShowApprovalOption()
      • getShowAsPopUp

        public java.lang.Boolean getShowAsPopUp()
        Returns if TNC Component is to be shown as pop up
        Returns:
        true, if TNC component is configured to show as pop up else false
      • getTncCheckBoxContent

        public java.lang.String getTncCheckBoxContent()
        Returns the consent text set for the TNC Component
        Returns:
        consent text configured for the TNC Component
      • getAssistProperty

        public java.lang.String getAssistProperty()
      • getScreenReaderText

        public java.lang.String getScreenReaderText()
      • getGuideFieldType

        public java.lang.String getGuideFieldType()
        Returns the field type of the Adaptive Forms Component
        Specified by:
        getGuideFieldType in interface FDField
        Overrides:
        getGuideFieldType in class GuideNode
        Returns:
        String representing guide field type
      • isMandatory

        public boolean isMandatory()
        Returns the boolean if tnc is mandatory or not.
        Overrides:
        isMandatory in class GuideField
        Returns:
        Boolean representing mandatory state of tnc.