Package com.adobe.aemds.guide.common
Class GuideTermsAndConditions
- java.lang.Object
-
- com.adobe.cq.sightly.WCMUsePojo
-
- com.adobe.aemds.guide.common.GuideNode
-
- com.adobe.aemds.guide.common.GuideField
-
- com.adobe.aemds.guide.common.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 Summary
Constructors Constructor Description GuideTermsAndConditions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAssistProperty()
java.lang.String
getGuideFieldType()
Returns the field type of the Adaptive Forms Componentjava.util.List<java.lang.String>
getLinkText()
Returns the link text of terms and conditions component configured in authoring dialogjava.lang.String
getScreenReaderText()
java.lang.Boolean
getShowApprovalOption()
java.lang.Boolean
getShowAsPopUp()
Returns if TNC Component is to be shown as pop upjava.lang.Boolean
getShowLink()
java.lang.String
getStyles()
Returns the string containing the width and height property represented as an inline CSS rule.java.lang.String
getTncCheckBoxContent()
Returns the consent text set for the TNC Componentjava.lang.String
getTncTextContent()
Returns the text content of terms and conditions component configured in authoring dialogboolean
isMandatory()
Returns the boolean if tnc is mandatory or not.-
Methods inherited from class com.adobe.aemds.guide.common.GuideField
getAuthoringConfig, getAutocomplete, getAutofillFieldKeyword, getCaptionInlineStyles, getDescriptionVisibility, getErrorSimulatorString, getFieldLayout, getFieldLayoutName, getHelpIndicatorContent, getHideTitle, getIsOldFieldLayout, getIsReadOnly, getIsRequired, getLabelForId, getLongDescription, getPlaceholderText, getShortDescription, getShortDescriptionInlineStyles, getValue, getWidgetInlineStyles, setHelpIndicatorContent
-
Methods inherited from class com.adobe.aemds.guide.common.GuideNode
activate, checkIfPathIsAbsolute, externalize, getAddMessage, getAppearance, getAuthoringConfigJSON, getBindRef, getClientLibRef, getColspan, getCssClassName, getDescription, getEnabled, getEnabledExp, getError, getFieldInlineStyles, getHeight, getI18n, getId, getInlineCssClass, getInlineStyles, getIsEditMode, getIsRepeatable, getItems, getLayoutPath, getLayoutTabType, getLongDescriptionInlineStyles, getName, getNavTitle, getNodeClass, getNonNavigableProperty, getPath, getQuestionMarkInlineStyles, getRemoveMessage, getResourceSuperType, getResourceType, getResponsiveClasses, getSlingRequest, getTargetVersion, getTitle, getToolbarPosition, getVersion, getVisible, getVisibleExp, getWidth, getXssapi, getXssDescription, isDocumentFragmentGroup, isLayoutNavigable, isMenuRequired, isValid, isValidDorTemplateRef, setClientLibRef, setResource, setSlingRequest, syncNode, validate
-
Methods inherited from class com.adobe.cq.sightly.WCMUsePojo
get, getComponent, getComponentContext, getCurrentDesign, getCurrentPage, getCurrentStyle, getDesigner, getEditContext, getInheritedProperties, getPageManager, getPageProperties, getProperties, getRequest, getResource, getResourceDesign, getResourcePage, getResourceResolver, getResponse, getSlingScriptHelper, getWcmMode, getXSSAPI, init
-
-
-
-
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.
-
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 interfaceFDField
- Overrides:
getGuideFieldType
in classGuideNode
- Returns:
- String representing guide field type
-
isMandatory
public boolean isMandatory()
Returns the boolean if tnc is mandatory or not.- Overrides:
isMandatory
in classGuideField
- Returns:
- Boolean representing mandatory state of tnc.
-
-