Class ListStyleApplierUtil
java.lang.Object
com.itextpdf.html2pdf.css.apply.util.ListStyleApplierUtil
Utilities class to apply list styles to an element.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyListStyleImageProperty(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies an image list style to an element.static voidapplyListStyleTypeProperty(com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer, Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies a list style to an element.static voidsetDiscStyle(com.itextpdf.layout.IPropertyContainer element, float em) Applies the "disc" list style to an element.
-
Method Details
-
applyListStyleImageProperty
public static void applyListStyleImageProperty(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies an image list style to an element.- Parameters:
-
cssProps- the CSS properties -
context- the processor context -
element- the element
-
applyListStyleTypeProperty
public static void applyListStyleTypeProperty(com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer, Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies a list style to an element.- Parameters:
-
stylesContainer- the styles container -
cssProps- the CSS properties -
context- the processor context -
element- the element
-
setDiscStyle
public static void setDiscStyle(com.itextpdf.layout.IPropertyContainer element, float em) Applies the "disc" list style to an element.- Parameters:
-
element- the element -
em- the em value
-