Class CounterContext

java.lang.Object
com.openhtmltopdf.layout.counter.CounterContext
All Implemented Interfaces:
AbstractCounterContext

public class CounterContext extends Object implements AbstractCounterContext
  • Field Details

    • _counters

      private final Map<String,Integer> _counters
    • _parent

      private CounterContext _parent
      This is different because it needs to work even when the counter- properties cascade and it should also logically be redefined on each level (think list-items within list-items)
  • Constructor Details

    • CounterContext

      public CounterContext(LayoutContext ctx, CalculatedStyle style, Integer startIndex)
      A CounterContext should really be reflected in the element hierarchy, but CalculatedStyles reflect the ancestor hierarchy just as well and also handles pseudo-elements seamlessly.
    • CounterContext

      private CounterContext()
  • Method Details