Class Toc
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendering.wiki.Toc
-
public class Toc extends Object
Table of contents model.A simple linked list of toc entries.
- Author:
- Bogdan Stefanescu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Toc.Entry
-
Constructor Summary
Constructors Constructor Description Toc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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).
-
-
-
Constructor Detail
-
Toc
public Toc()
-
-
Method Detail
-
addHeading
public 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).- Parameters:
title
- the heading titlelevel
- the heading level- Returns:
- the heading id
-
-