public class TocBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
fBaseLevel |
protected Deque<Integer> |
fBaseLevelStack |
protected int |
fLevel |
Constructor and Description |
---|
TocBuilder(ITocListener listener) |
TocBuilder(ITocListener listener,
int totalDepth) |
TocBuilder(ITocListener listener,
int documentDepth,
int headerDepth) |
TocBuilder(ITocListener listener,
int documentDepth,
int headerDepth,
int totalDepth) |
Modifier and Type | Method and Description |
---|---|
void |
beginDocument() |
void |
beginHeader(int level) |
boolean |
checkDepth() |
void |
endDocument() |
void |
endHeader() |
protected int |
getHeaderLevel() |
protected void |
setHeaderLevel(int level) |
public TocBuilder(ITocListener listener)
public TocBuilder(ITocListener listener, int totalDepth)
public TocBuilder(ITocListener listener, int documentDepth, int headerDepth)
public TocBuilder(ITocListener listener, int documentDepth, int headerDepth, int totalDepth)
public void beginDocument()
public void beginHeader(int level)
public boolean checkDepth()
true
if the current element should be shownpublic void endDocument()
public void endHeader()
protected int getHeaderLevel()
protected void setHeaderLevel(int level)
Copyright © 2004–2021 XWiki. All rights reserved.