Package com.adobe.cq.wcm.style
Interface ComponentStyleInfo
-
@ProviderType public interface ComponentStyleInfo
AComponentStyleInfoprovides 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAppliedCssClasses()Retrieves the CSS classes that are applied to the component.StringgetAppliedHtmlElement()Retrieves the HTML element that is applied to the component.List<StyleInfo>getAppliedStyles()Retrieves the styles that are applied to the component.ContentPolicyStyleInfogetContentPolicyStyleInfo()Retrieves the style information defined in the content policy of the component.
-
-
-
Method Detail
-
getContentPolicyStyleInfo
@Nullable ContentPolicyStyleInfo getContentPolicyStyleInfo()
Retrieves the style information defined in the content policy of the component.- Returns:
- the style information if defined,
nullotherwise - Since:
- com.adobe.cq.wcm.style 1.0.0
-
getAppliedStyles
@Nonnull 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 String getAppliedCssClasses()
Retrieves the CSS classes that are applied to the component.- Returns:
- the CSS classes if defined,
nullotherwise - Since:
- com.adobe.cq.wcm.style 1.0.0
-
-