Class AbstractBaseImpl

    • Constructor Detail

      • AbstractBaseImpl

        public AbstractBaseImpl()
    • Method Detail

      • getLabel

        public Label getLabel()
        Returns label of the form field
        Specified by:
        getLabel in interface Base
        Overrides:
        getLabel in class AbstractFormComponentImpl
        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: Base
        Returns the tool tip of the field
        Specified by:
        getTooltip in interface Base
        Returns:
        the tool tip of the field
      • isTooltipVisible

        public boolean isTooltipVisible()
        Description copied from interface: Base
        Returns true if tooltip should always be visible, otherwise false.
        Specified by:
        isTooltipVisible in interface Base
        Returns:
        true if tooltip should always be visible, otherwise false
      • getLang

        public java.lang.String getLang()
        Description copied from interface: Base
        Returns the language to use for formatting the field.
        Specified by:
        getLang in interface Base
        Returns:
        returns the language to use for formatting the field.
      • getScreenReaderText

        @Nullable
        public @Nullable java.lang.String getScreenReaderText()
        Description copied from interface: Base
        Returns json formula rule to indicate the text to be read by screen readers based on the AssistPriority configured.
        Specified by:
        getScreenReaderText in interface Base
        Returns:
        the screen reader text as json formula rule
      • getHtmlScreenReaderText

        @Nullable
        public @Nullable java.lang.String getHtmlScreenReaderText()
        Description copied from interface: Base
        Returns 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:
        getHtmlScreenReaderText in interface Base
        Returns:
        the screen reader text
      • getDescription

        @Nullable
        public @Nullable java.lang.String getDescription()
        Returns the description of the field
        Specified by:
        getDescription in interface Base
        Overrides:
        getDescription in class AbstractFormComponentImpl
        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()
        Returns true if form field should be enabled, otherwise false.
        Specified by:
        isEnabled in interface Base
        Returns:
        true if form field should be enabled, otherwise false
        Since:
        com.adobe.cq.forms.core.components.models.form 0.0.1
      • 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: Base
        Returns 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:
        getConstraintMessages in interface Base
        Returns:
        map of constraint messages specific to each constraint.
      • getValidationExpression

        @Nullable
        public @Nullable java.lang.String getValidationExpression()
        Description copied from interface: BaseConstraint
        Returns an expression returning boolean value indicating whether the value in the field is valid or not
        Specified by:
        getValidationExpression in interface BaseConstraint
        Returns:
        an expression