Package com.adobe.cq.wcm.style
Interface ComponentStyleInfo
- 
@ProviderType public interface ComponentStyleInfoAComponentStyleInfoprovides 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 java.lang.StringgetAppliedCssClasses()Retrieves the CSS classes that are applied to the component.java.lang.StringgetAppliedHtmlElement()Retrieves the HTML element that is applied to the component.java.util.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 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, 
nullotherwise - 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, 
nullotherwise - Since:
 - com.adobe.cq.wcm.style 1.0.0
 
 
 - 
 
 -