public class CounterContext extends Object implements AbstractCounterContext
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentCounterValue(String name) |
List<Integer> |
getCurrentCounterValues(String name) |
public CounterContext(LayoutContext ctx, CalculatedStyle style, Integer startIndex)
public int getCurrentCounterValue(String name)
getCurrentCounterValue in interface AbstractCounterContextpublic List<Integer> getCurrentCounterValues(String name)
getCurrentCounterValues in interface AbstractCounterContextCopyright © 2004–2025. All rights reserved.