Interface Text

All Superinterfaces:
Component, ComponentExporter

@ConsumerType public interface Text extends Component
Defines the Text Sling Model used for the /apps/core/wcm/components/text component.
Since:
com.adobe.cq.wcm.core.components.models 11.0.0
  • Field Summary

    Fields inherited from interface com.adobe.cq.wcm.core.components.models.Component

    PN_ID
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Retrieves the text value to be displayed.
    default boolean
    Checks if the text to be displayed is rich text or not.

    Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component

    getAppliedCssClasses, getData, getExportedType, getId
  • Method Details

    • getText

      default String getText()
      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.wcm.core.components.models 11.0.0; marked default in 12.1.0
    • 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.wcm.core.components.models 11.0.0; marked default in 12.1.0