info.bliki.wiki.tags
Class TableOfContentTag
java.lang.Object
info.bliki.htmlcleaner.TagToken
info.bliki.htmlcleaner.TagNode
info.bliki.wiki.tags.HTMLTag
info.bliki.wiki.tags.TableOfContentTag
- All Implemented Interfaces:
- BaseToken, ITableOfContent, IBodyTag, java.lang.Cloneable
public class TableOfContentTag
- extends HTMLTag
- implements IBodyTag, ITableOfContent
Wiki tag for rendering the "table of contents" inside a wikipedia
article
Methods inherited from class info.bliki.htmlcleaner.TagNode |
addAllowedAttribute, addAttribute, addChild, addChildren, addItemForMoving, addObjectAttribute, getAllowedAttributes, getAttributes, getBodyString, getBodyString, getChildren, getItemsToMove, getObjectAttributes, getParent, getParents, isAllowedAttribute, isFormed, makeCopy, removeAllowedAttribute, serialize, setFormed, setItemsToMove, setParent |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
TableOfContentTag
public TableOfContentTag(java.lang.String name)
renderHTML
public void renderHTML(ITextConverter converter,
java.lang.Appendable writer,
IWikiModel model)
throws java.io.IOException
- Overrides:
renderHTML
in class HTMLTag
- Throws:
java.io.IOException
isReduceTokenStack
public boolean isReduceTokenStack()
- Overrides:
isReduceTokenStack
in class TagToken
isShowToC
public boolean isShowToC()
setShowToC
public void setShowToC(boolean showToC)
- Enable or disable the rendering of the "table of content"
- Specified by:
setShowToC
in interface ITableOfContent
- Parameters:
showToC
- if true
render the "table of content"
clone
public java.lang.Object clone()
- Overrides:
clone
in class TagNode
getTableOfContent
public java.util.List<java.lang.Object> getTableOfContent()
isTOCIdentifier
public boolean isTOCIdentifier()
setTOCIdentifier
public void setTOCIdentifier(boolean isTOCIdentifier)
getSectionHeaders
public java.util.List<SectionHeader> getSectionHeaders()
- Description copied from interface:
ITableOfContent
- Get a list of the section headers (i.e. "==...==",
"===...===", "====...====",...) used in this
"table of content"
- Specified by:
getSectionHeaders
in interface ITableOfContent
- Returns:
- a list with the section headers.
Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.