Interface ContentPolicyStyleInfo


@ProviderType public interface ContentPolicyStyleInfo
A ContentPolicyStyleInfo provides methods for retrieving information about the styles defined at the content policy of a component.
Since:
com.adobe.cq.wcm.style 1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the default CSS classes defined at the content policy of a component.
    Retrieves the default HTML element that is applied at the content policy of a component.
    Retrieves the list of style groups defined at the content policy of a component.
  • Method Details

    • getStyleGroups

      @Nonnull List<StyleGroupInfo> getStyleGroups()
      Retrieves the list of style groups defined at the content policy of a component.
      Returns:
      the list of the style groups if any, an empty list otherwise
      Since:
      com.adobe.cq.wcm.style 1.0.0
    • getDefaultCssClasses

      @Nullable String getDefaultCssClasses()
      Retrieves the default CSS classes defined at the content policy of a component.
      Returns:
      the CSS classes if defined, null otherwise
      Since:
      com.adobe.cq.wcm.style 2.1.0
    • getDefaultHtmlElement

      @Nullable String getDefaultHtmlElement()
      Retrieves the default HTML element that is applied at the content policy of a component.
      Returns:
      the HTML element if defined, null otherwise
      Since:
      com.adobe.cq.wcm.style 2.1.0