Interface FormContainer
-
- All Superinterfaces:
Base,BaseConstraint,Component,com.adobe.cq.export.json.ComponentExporter,Container,com.adobe.cq.export.json.ContainerExporter,FormComponent
@ConsumerType public interface FormContainer extends Container
Defines the form containerFormContainerSling Model used for the/apps/core/fd/components/form/formcontainercomponent.- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.adobe.cq.forms.core.components.models.form.BaseConstraint
BaseConstraint.Type
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringADOBE_GLOBAL_API_ROOTName of the adobe global API root for HTTP APIstatic java.lang.StringDEFAULT_FORMS_SPEC_VERSIONstatic java.lang.StringFORMS_RUNTIME_API_GLOBAL_ROOTName of the forms runtime API root for HTTP APIstatic java.lang.StringPN_CLIENT_LIB_REFName of the resource property that defines the reference to the client libstatic java.lang.StringPN_RUNTIME_DOCUMENT_PATHName of the resource property that defines the document path containing the json-
Fields inherited from interface com.adobe.cq.forms.core.components.models.form.Base
DATE_FORMATTER, DEFAULT_LANGUAGE
-
Fields inherited from interface com.adobe.cq.forms.core.components.models.form.FormComponent
CUSTOM_PROPERTY_WRAPPER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetAction()Returns the submit actiondefault java.lang.StringgetAdaptiveFormVersion()Returns the version of the adaptive form specificationdefault AutoSaveConfigurationgetAutoSaveConfig()Returns the auto save configurationdefault @Nullable java.lang.StringgetClientLibRef()Returns name of the client lib categorydefault java.lang.StringgetContainingPageLang()Returns the language of the containing pagedefault java.lang.StringgetCustomFunctionUrl()Returns the url from where the custom functions should be registereddefault java.lang.StringgetDataUrl()Returns the data url to fetch form datadefault java.lang.StringgetDescription()Returns the form descriptiondefault java.lang.StringgetDocumentPath()Returns the document path (dam asset) containing the form model json@Nullable java.lang.StringgetEncodedCurrentPagePath()Returns base64 encoded current page pathdefault java.lang.StringgetFieldType()Returns the field typedefault java.lang.StringgetFormData()Returns the form datadefault @Nullable java.lang.StringgetId()Returns a unique identifierdefault java.lang.BooleangetIsHamburgerMenuEnabled()Returns the hamburger menu supportdefault LabelgetLabel()Returns label of the form fielddefault java.lang.StringgetLang()Returns the language in which the form was authoreddefault java.lang.StringgetLanguageDirection()API to give direction of content in HTML for a given language.FormMetaDatagetMetaData()Returns form metadataFormMetaDatadefault java.util.Map<java.lang.String,java.lang.Object>getModel()Returns the form modeldefault java.lang.StringgetName()Returns the name of the form fielddefault java.lang.StringgetParentPagePath()Returns site page path if dropped in sites else the form page path.default java.lang.StringgetPrefillService()Returns the prefill service for the formdefault java.lang.StringgetRedirectUrl()Returns the redirect url after form submissiondefault @Nullable java.lang.StringgetSchemaRef()default @Nullable GuideSchemaTypegetSchemaType()Returns schema typeGuideSchemaTypejava.lang.StringgetThankYouMessage()Returns the form thank you messagedefault ThankYouOptiongetThankYouOption()Returns the form thank you optiondefault java.lang.StringgetThankYouPage()Returns the form thank you pagedefault java.lang.StringgetTitle()Returns the form titledefault BaseConstraint.TypegetType()Returns the data type of the form field.default java.lang.BooleanisEnabled()Returnstrueif form field should be enabled, otherwisefalse.default java.lang.BooleanisVisible()Returnstrueif form field should be visible, otherwisefalse.default voidsetContextPath(java.lang.String contextPath)Set the contextPath in formContainerdefault voidvisit(java.util.function.Consumer<com.adobe.cq.export.json.ComponentExporter> callback)-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.Base
getConstraintMessages, getHtmlScreenReaderText, getScreenReaderText, getTooltip, isTooltipVisible
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.BaseConstraint
getValidationExpression
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.Container
getAppliedCssClasses, getColumnClassNames, getColumnCount, getExportedAllowedComponents, getExportedItems, getExportedItemsOrder, getExportedType, getGridClassNames, getItems, getRoleAttribute, isRequired
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.FormComponent
getDataRef, getDorProperties, getEvents, getPath, getProperties, getRules, setI18n
-
-
-
-
Field Detail
-
ADOBE_GLOBAL_API_ROOT
static final java.lang.String ADOBE_GLOBAL_API_ROOT
Name of the adobe global API root for HTTP API- Since:
- com.adobe.cq.forms.core.components.models.form 4.0.0
- See Also:
- Constant Field Values
-
FORMS_RUNTIME_API_GLOBAL_ROOT
static final java.lang.String FORMS_RUNTIME_API_GLOBAL_ROOT
Name of the forms runtime API root for HTTP API- Since:
- com.adobe.cq.forms.core.components.models.form 4.0.0
- See Also:
- Constant Field Values
-
PN_RUNTIME_DOCUMENT_PATH
static final java.lang.String PN_RUNTIME_DOCUMENT_PATH
Name of the resource property that defines the document path containing the json- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
- See Also:
- Constant Field Values
-
PN_CLIENT_LIB_REF
static final java.lang.String PN_CLIENT_LIB_REF
Name of the resource property that defines the reference to the client lib- Since:
- com.adobe.cq.forms.core.components.models.form 2.0.0
- See Also:
- Constant Field Values
-
DEFAULT_FORMS_SPEC_VERSION
static final java.lang.String DEFAULT_FORMS_SPEC_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetaData
FormMetaData getMetaData()
Returns form metadataFormMetaData- Returns:
- form meta data
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getAdaptiveFormVersion
default java.lang.String getAdaptiveFormVersion()
Returns the version of the adaptive form specification- Since:
- com.adobe.cq.forms.core.components.models.form 2.0.0
-
getSchemaRef
@Nullable default @Nullable java.lang.String getSchemaRef()
-
getSchemaType
@Nullable default @Nullable GuideSchemaType getSchemaType()
Returns schema typeGuideSchemaType- Returns:
- schema type
- Since:
- com.adobe.cq.forms.core.components.models.form 2.1.0
-
getClientLibRef
@Nullable default @Nullable java.lang.String getClientLibRef()
Returns name of the client lib category- Returns:
- name of the client lib category
- Since:
- com.adobe.cq.forms.core.components.models.form 2.1.0
-
getId
@Nullable default @Nullable java.lang.String getId()
Returns a unique identifier
-
getFieldType
default java.lang.String getFieldType()
Description copied from interface:FormComponentReturns the field type- Specified by:
getFieldTypein interfaceFormComponent- Returns:
- the field type
-
isEnabled
default java.lang.Boolean isEnabled()
Description copied from interface:BaseReturnstrueif form field should be enabled, otherwisefalse.
-
getIsHamburgerMenuEnabled
default java.lang.Boolean getIsHamburgerMenuEnabled()
Returns the hamburger menu support- Returns:
- the hamburger menu support of the form
- Since:
- com.adobe.cq.forms.core.components.models.form 5.7.5
-
getLabel
default Label getLabel()
Description copied from interface:BaseReturns label of the form field
-
isVisible
default java.lang.Boolean isVisible()
Description copied from interface:FormComponentReturnstrueif form field should be visible, otherwisefalse.- Specified by:
isVisiblein interfaceFormComponent- Returns:
trueif form field should be visible, otherwisefalse
-
getName
default java.lang.String getName()
Description copied from interface:FormComponentReturns the name of the form field- Specified by:
getNamein interfaceFormComponent- Returns:
- name of the form field
-
getType
default BaseConstraint.Type getType()
Description copied from interface:BaseConstraintReturns the data type of the form field.- Specified by:
getTypein interfaceBaseConstraint- Returns:
- the data type of the form field
-
getTitle
default java.lang.String getTitle()
Returns the form title- Returns:
- form title
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getDescription
default java.lang.String getDescription()
Returns the form description- Specified by:
getDescriptionin interfaceBase- Returns:
- form description
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getModel
default java.util.Map<java.lang.String,java.lang.Object> getModel()
Returns the form model- Returns:
- the form model, based on the document path configured or the items
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getDocumentPath
default java.lang.String getDocumentPath()
Returns the document path (dam asset) containing the form model json- Returns:
- the document path containing form model json, if one was set, or
null - Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getEncodedCurrentPagePath
@Nullable @Nullable java.lang.String getEncodedCurrentPagePath()
Returns base64 encoded current page path- Returns:
- base64 encoded current page path
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getThankYouMessage
java.lang.String getThankYouMessage()
Returns the form thank you message- Returns:
- form thank you message
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getThankYouPage
default java.lang.String getThankYouPage()
Returns the form thank you page- Returns:
- form thank you page
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getThankYouOption
default ThankYouOption getThankYouOption()
Returns the form thank you option- Returns:
- form thank you option
- Since:
- com.adobe.cq.forms.core.components.models.form 4.4.0
-
getFormData
default java.lang.String getFormData()
Returns the form data- Returns:
- the form data
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getAction
default java.lang.String getAction()
Returns the submit action- Returns:
- the submit action
- Since:
- com.adobe.cq.forms.core.components.models.form 4.0.0
-
getDataUrl
default java.lang.String getDataUrl()
Returns the data url to fetch form data- Returns:
- the data url to fetch form data
- Since:
- com.adobe.cq.forms.core.components.models.form 4.0.0
-
getLang
default java.lang.String getLang()
Returns the language in which the form was authored
-
getContainingPageLang
default java.lang.String getContainingPageLang()
Returns the language of the containing page- Returns:
- the language of the containing page
- Since:
- com.adobe.cq.forms.core.components.models.form 4.7.1
-
getLanguageDirection
default java.lang.String getLanguageDirection()
API to give direction of content in HTML for a given language.- Returns:
- one of the constants "rtl" or "ltr" depending on direction of given language
- Since:
- com.adobe.cq.forms.core.components.models.form 4.5.0
-
getRedirectUrl
default java.lang.String getRedirectUrl()
Returns the redirect url after form submission- Returns:
- the redirect url of the form
- Since:
- com.adobe.cq.forms.core.components.models.form 4.4.0
-
getPrefillService
default java.lang.String getPrefillService()
Returns the prefill service for the form- Returns:
- the prefill service
- Since:
- com.adobe.cq.forms.core.components.models.form 4.4.0
-
setContextPath
default void setContextPath(java.lang.String contextPath)
Set the contextPath in formContainer- Since:
- com.adobe.cq.forms.core.components.models.form 4.4.0
-
visit
default void visit(java.util.function.Consumer<com.adobe.cq.export.json.ComponentExporter> callback) throws java.lang.Exception- Throws:
java.lang.Exception
-
getParentPagePath
default java.lang.String getParentPagePath()
Returns site page path if dropped in sites else the form page path.- Returns:
- parent page path before jcr:content
- Since:
- com.adobe.cq.forms.core.components.models.form 4.4.0
-
getCustomFunctionUrl
default java.lang.String getCustomFunctionUrl()
Returns the url from where the custom functions should be registered- Returns:
- custom function registration url
- Since:
- com.adobe.cq.forms.core.components.models.form 5.9.5
-
getAutoSaveConfig
default AutoSaveConfiguration getAutoSaveConfig()
Returns the auto save configuration- Returns:
- auto save configuration
- Since:
- com.adobe.cq.forms.core.components.models.form 5.11.0
-
-