Class DefaultCssApplierFactory
java.lang.Object
com.itextpdf.html2pdf.css.apply.impl.DefaultCssApplierFactory
- All Implemented Interfaces:
-
ICssApplierFactory
A factory for creating
ICssApplier
objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ICssApplier
getCssApplier
(com.itextpdf.styledxmlparser.node.IElementNode tag) Returns aICssApplier
instance constructed based on the parameters of a node.getCustomCssApplier
(com.itextpdf.styledxmlparser.node.IElementNode tag) Gets a custom CSS applier.static ICssApplierFactory
GetsDefaultCssApplierFactory
instance.
-
Constructor Details
-
DefaultCssApplierFactory
public DefaultCssApplierFactory()Creates a newDefaultCssApplierFactory
instance.
-
-
Method Details
-
getInstance
GetsDefaultCssApplierFactory
instance.- Returns:
- default instance that is used if custom css appliers are not configured
-
getCssApplier
Description copied from interface:ICssApplierFactory
Returns aICssApplier
instance constructed based on the parameters of a node.- Specified by:
-
getCssApplier
in interfaceICssApplierFactory
- Parameters:
-
tag
- a node - Returns:
- a CSS applier based on the parameters of a node
-
getCustomCssApplier
Gets a custom CSS applier. This method needs to be overridden because the default CSS applier factory will always returnnull
.- Parameters:
-
tag
- the key - Returns:
- the custom CSS applier
-