Package org.xhtmlrenderer.layout
Class LayoutContext.CounterContext
java.lang.Object
org.xhtmlrenderer.layout.LayoutContext.CounterContext
- Enclosing class:
- LayoutContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LayoutContext.CounterContext
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 Summary
ConstructorsModifierConstructorDescriptionprivate
(package private)
CounterContext
(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. -
Method Summary
Modifier and TypeMethodDescriptionprivate Integer
getCounter
(String name) private void
getCounterValues
(String name, List<Integer> values) int
getCurrentCounterValue
(String name) private boolean
private void
incrementListItemCounter
(int increment) private void
-
Field Details
-
_counters
-
_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
CounterContext(CalculatedStyle style, @Nullable 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
-
incrementCounter
- Returns:
- true if a counter was found and incremented
-
incrementListItemCounter
private void incrementListItemCounter(int increment) -
resetCounter
-
getCurrentCounterValue
-
getCounter
-
getCurrentCounterValues
-
getCounterValues
-