sunlabs.brazil.sunlabs
Class TitleTemplate

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

public class TitleTemplate
extends Template

Template to look up "title" attributes in a database, and rewrite them. Looks for "title." in the properties, where "content" is the current value of the title. Firefox displays "balloon help" when it sees a "title" attribute. This allows us to put the titles in a table, and substitute them into the document at run time.

config
This specifies the name of a properties file that contains the help table. This is consulted if the help test is not present in request.props. The file is interpreted relative to the document root, and may exist as a resource.

Any ${..} substitutions are done when the text is mapped. Make sure no "'s or '>'s occur in the text.

ToDo: If the title isn't there, we could look for "id" and/or "name", but we don't.


Field Summary
 
Fields inherited from class sunlabs.brazil.template.Template
debug
 
Constructor Summary
TitleTemplate()
           
 
Method Summary
 void defaultTag(RewriteContext hr)
           
 boolean init(RewriteContext hr)
          Called before this template processes any tags.
 
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

TitleTemplate

public TitleTemplate()
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

defaultTag

public void defaultTag(RewriteContext hr)

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