Package com.adobe.aemds.guide.common
Class AEMForm
- java.lang.Object
-
- com.adobe.cq.sightly.WCMUsePojo
-
- com.adobe.aemds.guide.common.AEMForm
-
- All Implemented Interfaces:
Use
- Direct Known Subclasses:
AdaptiveForm
public class AEMForm extends com.adobe.cq.sightly.WCMUsePojo
AEMForm class encapsulates basic properties of an AEM Form.- Since:
- 6.2
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADAPTIVE_FORM
static int
INLINE_SUBMIT
static int
MC_DOCUMENT
static int
MOBILE_FORM
static int
MOBILE_FORMSET
static int
NO_FORM_SELECTED
static int
PAGE_REFRESH_SUBMIT
static java.lang.String
PROP_THANK_YOU_CONFIG
static java.lang.String
PROP_THANK_YOU_MESSAGE
static java.lang.String
PROP_THANK_YOU_PAGE
-
Constructor Summary
Constructors Constructor Description AEMForm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
java.lang.String
getAdditionalParamString()
java.lang.String
getCssClientlib()
java.lang.String
getFormEditPagePath()
java.lang.String
getFormPath()
int
getFormType()
java.lang.String
getHeight()
The functions checks the height set in the dialog.boolean
getIsAdaptiveForm()
boolean
getIsFormSelected()
boolean
getIsMCDocument()
boolean
getIsMobileForm()
boolean
getIsMobileFormset()
boolean
getIsPlaceholderVisible()
java.lang.String
getSubmitType()
java.lang.String
getThankyouConfig()
java.lang.String
getThankyouMessage()
java.lang.String
getThankyouPage()
java.lang.String
getThemeName()
Returns the client lib name for the themejava.lang.String
getThemePath()
Returns the path of the theme associated with adaptive form.-
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
-
-
-
-
Field Detail
-
NO_FORM_SELECTED
public static final int NO_FORM_SELECTED
- See Also:
- Constant Field Values
-
MOBILE_FORM
public static final int MOBILE_FORM
- See Also:
- Constant Field Values
-
ADAPTIVE_FORM
public static final int ADAPTIVE_FORM
- See Also:
- Constant Field Values
-
MC_DOCUMENT
public static final int MC_DOCUMENT
- See Also:
- Constant Field Values
-
MOBILE_FORMSET
public static final int MOBILE_FORMSET
- See Also:
- Constant Field Values
-
INLINE_SUBMIT
public static final int INLINE_SUBMIT
- See Also:
- Constant Field Values
-
PAGE_REFRESH_SUBMIT
public static final int PAGE_REFRESH_SUBMIT
- See Also:
- Constant Field Values
-
PROP_THANK_YOU_CONFIG
public static final java.lang.String PROP_THANK_YOU_CONFIG
- See Also:
- Constant Field Values
-
PROP_THANK_YOU_PAGE
public static final java.lang.String PROP_THANK_YOU_PAGE
- See Also:
- Constant Field Values
-
PROP_THANK_YOU_MESSAGE
public static final java.lang.String PROP_THANK_YOU_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
activate
public void activate() throws java.lang.Exception
- Specified by:
activate
in classcom.adobe.cq.sightly.WCMUsePojo
- Throws:
java.lang.Exception
-
getThemeName
public java.lang.String getThemeName()
Returns the client lib name for the theme- Returns:
- client lib name of the theme configured for the form
-
getFormPath
public java.lang.String getFormPath()
-
getThemePath
public java.lang.String getThemePath()
Returns the path of the theme associated with adaptive form.- Returns:
- Path of the theme associated with adaptive form.
-
getFormEditPagePath
public java.lang.String getFormEditPagePath()
-
getFormType
public int getFormType()
-
getIsAdaptiveForm
public boolean getIsAdaptiveForm()
-
getIsMCDocument
public boolean getIsMCDocument()
-
getIsMobileForm
public boolean getIsMobileForm()
-
getIsMobileFormset
public boolean getIsMobileFormset()
-
getIsFormSelected
public boolean getIsFormSelected()
-
getSubmitType
public java.lang.String getSubmitType()
-
getThankyouMessage
public java.lang.String getThankyouMessage()
-
getThankyouPage
public java.lang.String getThankyouPage()
-
getThankyouConfig
public java.lang.String getThankyouConfig()
-
getHeight
public java.lang.String getHeight()
The functions checks the height set in the dialog. It appends the height with px unless it is auto. For invalid values (non integers), auto is returned.- Returns:
- height of the form configured
-
getCssClientlib
public java.lang.String getCssClientlib()
-
getAdditionalParamString
public java.lang.String getAdditionalParamString()
-
getIsPlaceholderVisible
public boolean getIsPlaceholderVisible()
-
-