Class LayoutContext.CounterContext
java.lang.Object
org.xhtmlrenderer.layout.LayoutContext.CounterContext
- Enclosing class:
LayoutContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable LayoutContext.CounterContextThis 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, @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. -
Method Summary
Modifier and TypeMethodDescriptionprivate @Nullable IntegergetCounter(String name) private voidgetCounterValues(String name, List<Integer> values) intgetCurrentCounterValue(String name) private booleanprivate voidincrementListItemCounter(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
-