Interface Base
-
- All Superinterfaces:
Component,com.adobe.cq.export.json.ComponentExporter,FormComponent
- All Known Subinterfaces:
Button,Captcha,CheckBox,CheckBoxGroup,Container,DatePicker,DropDown,Field,FileInput,FormContainer,Fragment,HCaptcha,NumberInput,Panel,RadioButton,Review,Switch,TermsAndConditions,TextInput,Turnstile
- All Known Implementing Classes:
AbstractBaseImpl,AbstractCaptchaImpl,AbstractCaptchaImplV2,AbstractCheckboxImpl,AbstractContainerImpl,AbstractFieldImpl,AbstractOptionsFieldImpl
@ProviderType public interface Base extends FormComponent
A base interface to be extended by all the different types of form elements.- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDATE_FORMATTERstatic java.lang.StringDEFAULT_LANGUAGEConstant representing the default language used, typically "en-US".-
Fields inherited from interface com.adobe.cq.forms.core.components.models.form.FormComponent
CUSTOM_PROPERTY_WRAPPER
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default @NotNull java.util.Map<ConstraintType,java.lang.String>getConstraintMessages()Returns map of constraint messages specific to each constraint (like required, minLength etc).default @Nullable java.lang.StringgetDescription()Returns the description of the fielddefault @NotNull java.lang.StringgetExportedType()default @Nullable java.lang.StringgetHtmlScreenReaderText()Returns the string to indicate the text to be read by screen readers.default @Nullable LabelgetLabel()Returns label of the form fielddefault @Nullable java.lang.StringgetLang()Returns the language to use for formatting the field.default @Nullable java.lang.StringgetScreenReaderText()Returns json formula rule to indicate the text to be read by screen readers based on theAssistPriorityconfigured.default @Nullable java.lang.StringgetTooltip()Returns the tool tip of the fielddefault @Nullable java.lang.BooleanisEnabled()Returnstrueif form field should be enabled, otherwisefalse.default booleanisTooltipVisible()Returnstrueif tooltip should always be visible, otherwisefalse.-
Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getId
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.FormComponent
getDataRef, getDorProperties, getEvents, getFieldType, getName, getPath, getProperties, getRules, isVisible, setI18n
-
-
-
-
Field Detail
-
DATE_FORMATTER
static final java.lang.String DATE_FORMATTER
- See Also:
- Constant Field Values
-
DEFAULT_LANGUAGE
static final java.lang.String DEFAULT_LANGUAGE
Constant representing the default language used, typically "en-US".- Since:
- com.adobe.cq.forms.core.components.models.form 5.3.1
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLabel
@Nullable default @Nullable Label getLabel()
Returns label of the form field- Returns:
- label of the field
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getDescription
@Nullable default @Nullable java.lang.String getDescription()
Returns the description of the field- Returns:
- the description of the field
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getScreenReaderText
@Nullable default @Nullable java.lang.String getScreenReaderText()
Returns json formula rule to indicate the text to be read by screen readers based on theAssistPriorityconfigured.- Returns:
- the screen reader text as json formula rule
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getHtmlScreenReaderText
@Nullable default @Nullable java.lang.String getHtmlScreenReaderText()
Returns the string to indicate the text to be read by screen readers. This could be used on server side to compute initial rendition- Returns:
- the screen reader text
- Since:
- com.adobe.cq.forms.core.components.models.form 2.0.0
-
isEnabled
@Nullable default @Nullable java.lang.Boolean isEnabled()
Returnstrueif form field should be enabled, otherwisefalse.- Returns:
trueif form field should be enabled, otherwisefalse- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getConstraintMessages
@NotNull default @NotNull java.util.Map<ConstraintType,java.lang.String> getConstraintMessages()
Returns map of constraint messages specific to each constraint (like required, minLength etc). The constraint list would change based on the form field type- Returns:
- map of constraint messages specific to each constraint.
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getExportedType
@NotNull default @NotNull java.lang.String getExportedType()
- Specified by:
getExportedTypein interfaceComponent- Specified by:
getExportedTypein interfacecom.adobe.cq.export.json.ComponentExporter- Since:
- com.adobe.cq.wcm.core.components.models.form 14.2.0
- See Also:
ComponentExporter.getExportedType()
-
getTooltip
@Nullable default @Nullable java.lang.String getTooltip()
Returns the tool tip of the field- Returns:
- the tool tip of the field
- Since:
- com.adobe.cq.forms.core.components.models.form 2.0.0
-
isTooltipVisible
default boolean isTooltipVisible()
Returnstrueif tooltip should always be visible, otherwisefalse.- Returns:
trueif tooltip should always be visible, otherwisefalse- Since:
- com.adobe.cq.forms.core.components.models.form 2.0.0
-
getLang
@Nullable default @Nullable java.lang.String getLang()
Returns the language to use for formatting the field.- Returns:
- returns the language to use for formatting the field.
- Since:
- com.adobe.cq.forms.core.components.models.form 5.3.1
-
-