Interface StyleGroupInfo


@ProviderType public interface StyleGroupInfo
A StyleGroupInfo provides methods for retrieving information about a style group. It represents for example style resources defined in a content policy below a cq:styleGroups node.
Since:
com.adobe.cq.wcm.style 1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the style group allows multiple selection of styles.
    Retrieves the readable name of the style group.
    Retrieves the styles that are part of this group.
  • Method Details

    • allowsMultiple

      boolean allowsMultiple()
      Checks if the style group allows multiple selection of styles.
      Returns:
      true if multiple selection is possible, false otherwise
      Since:
      com.adobe.cq.wcm.style 1.0.0
    • getLabel

      @Nullable String getLabel()
      Retrieves the readable name of the style group.
      Returns:
      the readable name of the style group if defined, null otherwise
      Since:
      com.adobe.cq.wcm.style 1.0.0
    • getStyles

      @Nonnull List<StyleInfo> getStyles()
      Retrieves the styles that are part of this group.
      Returns:
      the StyleInfos configured for the style group, an empty list otherwise
      Since:
      com.adobe.cq.wcm.style 1.0.0