Interface Text

  • All Superinterfaces:
    Component, com.adobe.cq.export.json.ComponentExporter, FormComponent

    @ConsumerType
    public interface Text
    extends FormComponent
    Defines the form Text Sling Model used for the /apps/core/fd/components/form/text/v1/text component.
    Since:
    com.adobe.cq.forms.core.components.models.form 0.0.1
    • Method Detail

      • getValue

        default java.lang.String getValue()
        Retrieves the text value to be displayed.
        Returns:
        the text value to be displayed, or null if no value can be returned
        Since:
        com.adobe.cq.forms.core.components.models.form 0.0.1;
      • isRichText

        default boolean isRichText()
        Checks if the text to be displayed is rich text or not.
        Returns:
        true if the text is rich (HTML formatting), false otherwise
        Since:
        com.adobe.cq.forms.core.components.models.form 0.0.1;