Package com.adobe.cq.wcm.style
Interface ComponentStyleInfo
-
@ProviderType public interface ComponentStyleInfo
AComponentStyleInfo
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAppliedCssClasses()
Retrieves the CSS classes that are applied to the component.java.lang.String
getAppliedHtmlElement()
Retrieves the HTML element that is applied to the component.java.util.List<StyleInfo>
getAppliedStyles()
Retrieves the styles that are applied to the component.ContentPolicyStyleInfo
getContentPolicyStyleInfo()
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,
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
StyleInfo
s 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
-
-