Package com.adobe.aemds.guide.common
Class AdaptiveForm
- java.lang.Object
-
- com.adobe.cq.sightly.WCMUsePojo
-
- com.adobe.aemds.guide.common.AEMForm
-
- com.adobe.aemds.guide.common.AdaptiveForm
-
-
Field Summary
-
Fields inherited from class com.adobe.aemds.guide.common.AEMForm
ADAPTIVE_FORM, INLINE_SUBMIT, MC_DOCUMENT, MOBILE_FORM, MOBILE_FORMSET, NO_FORM_SELECTED, PAGE_REFRESH_SUBMIT, PROP_THANK_YOU_CONFIG, PROP_THANK_YOU_MESSAGE, PROP_THANK_YOU_PAGE
-
-
Constructor Summary
Constructors Constructor Description AdaptiveForm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFormEditPagePath()
java.lang.String
getFormPagePath()
java.lang.String
getFormThemeName()
Returns the client lib to be used for styling the form.java.lang.String
getFormTitle()
get the title to be displayed for the form returnsPage.getTitle()
for the form if it exists otherwise returnsPage.getName()
java.lang.String
getLocaleString()
Returns the final locale for adaptive form as per the resolving order.-
Methods inherited from class com.adobe.aemds.guide.common.AEMForm
activate, getAdditionalParamString, getCssClientlib, getFormPath, getFormType, getHeight, getIsAdaptiveForm, getIsFormSelected, getIsMCDocument, getIsMobileForm, getIsMobileFormset, getIsPlaceholderVisible, getSubmitType, getThankyouConfig, getThankyouMessage, getThankyouPage, getThemeName, getThemePath
-
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
-
getFormPagePath
public java.lang.String getFormPagePath()
-
getFormEditPagePath
public java.lang.String getFormEditPagePath()
- Overrides:
getFormEditPagePath
in classAEMForm
-
getFormTitle
public java.lang.String getFormTitle()
get the title to be displayed for the form returnsPage.getTitle()
for the form if it exists otherwise returnsPage.getName()
- Returns:
- form title
-
getFormThemeName
public java.lang.String getFormThemeName()
Returns the client lib to be used for styling the form. The function first checks whether any theme is set either in dialog or the form. If not found returns empty string.- Returns:
- name of the theme client lib used in the form
-
getLocaleString
public java.lang.String getLocaleString()
Returns the final locale for adaptive form as per the resolving order.- Returns:
- the language locale string
-
-