| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| 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) |
| Access | Constructor and Description |
|---|---|
| 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. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private Integer | |
| private void | |
| public int | |
| public List | |
| private boolean | |
| private void | |
| private void |
| _counters | back to summary |
|---|---|
| private final Map<String, Integer> _counters | |
| _parent | back to summary |
|---|---|
| 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) | |
| CounterContext | back to summary |
|---|---|
| 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 | back to summary |
|---|---|
| private CounterContext() | |
| getCounter | back to summary |
|---|---|
| private Integer getCounter(String name) | |
| getCounterValues | back to summary |
|---|---|
| private void getCounterValues(String name, List<Integer> values) | |
| getCurrentCounterValue | back to summary |
|---|---|
| public int getCurrentCounterValue(String name) Implements com.
| |
| getCurrentCounterValues | back to summary |
|---|---|
| public List Implements com.
| |
| incrementCounter | back to summary |
|---|---|
private boolean incrementCounter(CounterData cd)
| |
| incrementListItemCounter | back to summary |
|---|---|
| private void incrementListItemCounter(int increment) | |
| resetCounter | back to summary |
|---|---|
| private void resetCounter(CounterData cd) | |