Class AbstractBaseImpl
- java.lang.Object
-
- com.adobe.cq.forms.core.components.util.AbstractComponentImpl
-
- com.adobe.cq.forms.core.components.util.AbstractFormComponentImpl
-
- com.adobe.cq.forms.core.components.util.AbstractBaseImpl
-
- All Implemented Interfaces:
com.adobe.cq.export.json.ComponentExporter,Base,BaseConstraint,FormComponent,Component
- Direct Known Subclasses:
AbstractContainerImpl,AbstractFieldImpl
public abstract class AbstractBaseImpl extends AbstractFormComponentImpl implements Base, BaseConstraint
Abstract class which can be used as base class forBaseimplementations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.adobe.cq.forms.core.components.models.form.BaseConstraint
BaseConstraint.Type
-
-
Field Summary
-
Fields inherited from class com.adobe.cq.forms.core.components.util.AbstractFormComponentImpl
CUSTOM_DOR_PROPERTY_WRAPPER, CUSTOM_JCR_PATH_PROPERTY_WRAPPER, CUSTOM_RULE_PROPERTY_WRAPPER
-
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
-
-
Constructor Summary
Constructors Constructor Description AbstractBaseImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.util.Map<ConstraintType,java.lang.String>getConstraintMessages()Returns map of constraint messages specific to each constraint (like required, minLength etc).@NotNull java.util.Map<java.lang.String,java.lang.Object>getCustomLayoutProperties()@Nullable java.lang.StringgetDescription()Returns the description of the fieldjava.lang.BooleangetEnabledIfPresent()@NotNull java.lang.StringgetExportedType()@Nullable java.lang.StringgetHtmlScreenReaderText()Returns the string to indicate the text to be read by screen readers.LabelgetLabel()Returns label of the form fieldjava.lang.StringgetLang()Returns the language to use for formatting the field.@Nullable java.lang.StringgetScreenReaderText()Returns json formula rule to indicate the text to be read by screen readers based on theAssistPriorityconfigured.@Nullable java.lang.StringgetTooltip()Returns the tool tip of the fieldjava.lang.StringgetTooltipText()Returns the text contained in the short description rich text string.BaseConstraint.TypegetType()Returns the data type of the form field.@Nullable java.lang.StringgetValidationExpression()Returns an expression returning boolean value indicating whether the value in the field is valid or not@Nullable java.lang.BooleanisEnabled()Returnstrueif form field should be enabled, otherwisefalse.booleanisTooltipVisible()Returnstrueif tooltip should always be visible, otherwisefalse.-
Methods inherited from class com.adobe.cq.forms.core.components.util.AbstractFormComponentImpl
getData, getDataRef, getDorProperties, getEvents, getFieldType, getLinkUrl, getName, getPath, getProperties, getRules, getText, getTitle, getVisibleIfPresent, isVisible, setI18n
-
Methods inherited from class com.adobe.cq.forms.core.components.util.AbstractComponentImpl
getAppliedCssClasses, getId
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.BaseConstraint
isRequired
-
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
-
-
-
-
Method Detail
-
getLabel
public Label getLabel()
Returns label of the form field- Specified by:
getLabelin interfaceBase- Overrides:
getLabelin classAbstractFormComponentImpl- Returns:
- label of the field
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
getTooltip
@Nullable public @Nullable java.lang.String getTooltip()
Description copied from interface:BaseReturns the tool tip of the field- Specified by:
getTooltipin interfaceBase- Returns:
- the tool tip of the field
-
isTooltipVisible
public boolean isTooltipVisible()
Description copied from interface:BaseReturnstrueif tooltip should always be visible, otherwisefalse.- Specified by:
isTooltipVisiblein interfaceBase- Returns:
trueif tooltip should always be visible, otherwisefalse
-
getLang
public java.lang.String getLang()
Description copied from interface:BaseReturns the language to use for formatting the field.
-
getCustomLayoutProperties
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.Object> getCustomLayoutProperties()
- Overrides:
getCustomLayoutPropertiesin classAbstractFormComponentImpl
-
getScreenReaderText
@Nullable public @Nullable java.lang.String getScreenReaderText()
Description copied from interface:BaseReturns json formula rule to indicate the text to be read by screen readers based on theAssistPriorityconfigured.- Specified by:
getScreenReaderTextin interfaceBase- Returns:
- the screen reader text as json formula rule
-
getHtmlScreenReaderText
@Nullable public @Nullable java.lang.String getHtmlScreenReaderText()
Description copied from interface:BaseReturns the string to indicate the text to be read by screen readers. This could be used on server side to compute initial rendition- Specified by:
getHtmlScreenReaderTextin interfaceBase- Returns:
- the screen reader text
-
getDescription
@Nullable public @Nullable java.lang.String getDescription()
Returns the description of the field- Specified by:
getDescriptionin interfaceBase- Overrides:
getDescriptionin classAbstractFormComponentImpl- Returns:
- the description of the field
- Since:
- com.adobe.cq.forms.core.components.models.form 0.0.1
-
isEnabled
@Nullable public @Nullable java.lang.Boolean isEnabled()
Returnstrueif form field should be enabled, otherwisefalse.
-
getEnabledIfPresent
public java.lang.Boolean getEnabledIfPresent()
-
getTooltipText
public java.lang.String getTooltipText()
Returns the text contained in the short description rich text string.
-
getConstraintMessages
@NotNull public @NotNull java.util.Map<ConstraintType,java.lang.String> getConstraintMessages()
Description copied from interface:BaseReturns map of constraint messages specific to each constraint (like required, minLength etc). The constraint list would change based on the form field type- Specified by:
getConstraintMessagesin interfaceBase- Returns:
- map of constraint messages specific to each constraint.
-
getExportedType
@NotNull public @NotNull java.lang.String getExportedType()
- Specified by:
getExportedTypein interfaceBase- Specified by:
getExportedTypein interfaceComponent- Specified by:
getExportedTypein interfacecom.adobe.cq.export.json.ComponentExporter- Overrides:
getExportedTypein classAbstractComponentImpl- See Also:
ComponentExporter.getExportedType()
-
getType
public BaseConstraint.Type getType()
Description copied from interface:BaseConstraintReturns the data type of the form field.- Specified by:
getTypein interfaceBaseConstraint- Overrides:
getTypein classAbstractFormComponentImpl- Returns:
- the data type of the form field
-
getValidationExpression
@Nullable public @Nullable java.lang.String getValidationExpression()
Description copied from interface:BaseConstraintReturns an expression returning boolean value indicating whether the value in the field is valid or not- Specified by:
getValidationExpressionin interfaceBaseConstraint- Returns:
- an expression
-
-