Package com.adobe.cq.wcm.style
Class StyleUtils
java.lang.Object
com.adobe.cq.wcm.style.StyleUtils
Useful helper methods for the WCM style feature.
- Since:
- com.adobe.cq.wcm.style 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]getAllowedStyleElements(Component component) Retrieves a list of allowed style HTML elements for a component.
-
Constructor Details
-
StyleUtils
public StyleUtils()
-
-
Method Details
-
getAllowedStyleElements
Retrieves a list of allowed style HTML elements for a component. If no elements is defined for the component, it walks the component hierarchy.- Returns:
- an array of allowed style HTML elements,
nullotherwise - Since:
- com.adobe.cq.wcm.style 1.0.0
-