public class Toc extends Object
A simple linked list of toc entries.
| Modifier and Type | Class and Description |
|---|---|
static class |
Toc.Entry |
| Modifier and Type | Field and Description |
|---|---|
protected Toc.Entry |
head |
protected Toc.Entry |
tail |
| Constructor and Description |
|---|
Toc() |
| Modifier and Type | Method and Description |
|---|---|
String |
addHeading(String title,
int level)
Adds a heading to the TOC list and returns the ID of that heading (to be used for anchors).
|
public Toc()
public String addHeading(String title, int level)
title - the heading titlelevel - the heading levelCopyright © 2019 Nuxeo. All rights reserved.