Interface Button

  • All Superinterfaces:
    Component, ComponentExporter

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

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

        PN_ID
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.String getAccessibilityLabel()
      Returns an accessibility label for the button.
      default @NotNull java.lang.String getExportedType()
      Returns the type of the resource for which the export is performed.
      default java.lang.String getIcon()
      Returns the button icon identifier.
      default java.lang.String getLink()
      Returns the button link.
      default java.lang.String getText()
      Returns the button text.
    • Method Detail

      • getText

        default java.lang.String getText()
        Returns the button text.
        Returns:
        the button text
        Since:
        com.adobe.cq.wcm.core.components.models 12.8.0
      • getLink

        default java.lang.String getLink()
        Returns the button link.
        Returns:
        the button link
        Since:
        com.adobe.cq.wcm.core.components.models 12.8.0
      • getIcon

        default java.lang.String getIcon()
        Returns the button icon identifier.
        Returns:
        the button icon identifier
        Since:
        com.adobe.cq.wcm.core.components.models 12.8.0
      • getAccessibilityLabel

        default java.lang.String getAccessibilityLabel()
        Returns an accessibility label for the button.
        Returns:
        an accessibility label for the button
        Since:
        com.adobe.cq.wcm.core.components.models 12.9.0
      • getExportedType

        @NotNull
        default @NotNull java.lang.String getExportedType()
        Description copied from interface: ComponentExporter

        Returns the type of the resource for which the export is performed.

        NOTE: methods whose JSON serialization would lead to the same JSON property name (":type") will not be serialized.

        Specified by:
        getExportedType in interface Component
        Specified by:
        getExportedType in interface ComponentExporter
        Returns:
        the type of the component
        Since:
        com.adobe.cq.wcm.core.components.models 12.8.0
        See Also:
        ComponentExporter.getExportedType()