Class Toc
java.lang.Object
org.nuxeo.ecm.platform.rendering.wiki.Toc
Table of contents model.
A simple linked list of toc entries.
- Author:
- Bogdan Stefanescu
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddHeading
(String title, int level) Adds a heading to the TOC list and returns the ID of that heading (to be used for anchors).
-
Field Details
-
head
-
tail
-
-
Constructor Details
-
Toc
public Toc()
-
-
Method Details
-
addHeading
Adds a heading to the TOC list and returns the ID of that heading (to be used for anchors).- Parameters:
title
- the heading titlelevel
- the heading level- Returns:
- the heading id
-