Class CounterProcessorUtil
java.lang.Object
com.itextpdf.html2pdf.css.apply.util.CounterProcessorUtil
Utilities class to process counters.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
endProcessingCounters
(CssContext context, com.itextpdf.styledxmlparser.node.IElementNode element) Ends processing counters.static void
processCounters
(Map<String, String> cssProps, CssContext context) Processes counters.static void
startProcessingCounters
(CssContext context, com.itextpdf.styledxmlparser.node.IElementNode element) Starts processing counters.
-
Constructor Details
-
CounterProcessorUtil
public CounterProcessorUtil()
-
-
Method Details
-
processCounters
Processes counters.- Parameters:
-
cssProps
- the CSS properties -
context
- the processor context
-
startProcessingCounters
public static void startProcessingCounters(CssContext context, com.itextpdf.styledxmlparser.node.IElementNode element) Starts processing counters. Pushes current counter values to counters if necessary. Usually it is expected that this method should be called before processing children of the element.- Parameters:
-
context
- the processor context -
element
- the element which counters shall be processed
-
endProcessingCounters
public static void endProcessingCounters(CssContext context, com.itextpdf.styledxmlparser.node.IElementNode element) Ends processing counters. Pops values of given counter list from counters if necessary. Usually it is expected that this method should be called after processing cheldren of the element.- Parameters:
-
context
- the processor context -
element
- the element which counters shall be processed
-