sunlabs.brazil.template
Class TOCTemplate

java.lang.Object
  extended by sunlabs.brazil.template.Template
      extended by sunlabs.brazil.template.TOCTemplate (view source)
All Implemented Interfaces:
TemplateInterface

public class TOCTemplate
extends Template

Template class for extracting table of contents information out of an html page by examining the "H1" tags, and setting request properties that can be used to build a table of contents. This class is used by the TemplateHandler.


Field Summary
 
Fields inherited from class sunlabs.brazil.template.Template
debug
 
Constructor Summary
TOCTemplate()
           
 
Method Summary
 boolean init(RewriteContext hr)
          Called before this template processes any tags.
 void tag_h1(RewriteContext hr)
          Add a name anchor to the H1 tag, so we can go there, and set the request properties:TOC.[anchor] to the text of the H1 tag.
 
Methods inherited from class sunlabs.brazil.template.Template
done
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TOCTemplate

public TOCTemplate()
Method Detail

init

public boolean init(RewriteContext hr)
Description copied from class: Template
Called before this template processes any tags.

Specified by:
init in interface TemplateInterface
Overrides:
init in class Template

tag_h1

public void tag_h1(RewriteContext hr)
Add a name anchor to the H1 tag, so we can go there, and set the request properties:TOC.[anchor] to the text of the H1 tag.


Version Kenai-svn-r24, Generated 08/18/09
Copyright (c) 2001-2009, Sun Microsystems.