Interface ComponentStyleInfo


  • @ProviderType
    public interface ComponentStyleInfo
    A ComponentStyleInfo provides methods for retrieving information about the styles defined on a page authoring component (e.g. a title component).
    Since:
    com.adobe.cq.wcm.style 1.0.0
    • Method Detail

      • getContentPolicyStyleInfo

        @Nullable
        ContentPolicyStyleInfo getContentPolicyStyleInfo()
        Retrieves the style information defined in the content policy of the component.
        Returns:
        the style information if defined, null otherwise
        Since:
        com.adobe.cq.wcm.style 1.0.0
      • getAppliedStyles

        @Nonnull
        java.util.List<StyleInfo> getAppliedStyles()
        Retrieves the styles that are applied to the component.
        Returns:
        the StyleInfos that are applied to the component, an empty list otherwise
        Since:
        com.adobe.cq.wcm.style 1.0.0
      • getAppliedCssClasses

        @Nullable
        java.lang.String getAppliedCssClasses()
        Retrieves the CSS classes that are applied to the component.
        Returns:
        the CSS classes if defined, null otherwise
        Since:
        com.adobe.cq.wcm.style 1.0.0
      • getAppliedHtmlElement

        @Nullable
        java.lang.String getAppliedHtmlElement()
        Retrieves the HTML element that is applied to the component.
        Returns:
        the HTML element if defined, null otherwise
        Since:
        com.adobe.cq.wcm.style 1.0.0