|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsunlabs.brazil.template.Template
sunlabs.brazil.template.NoImageTemplate
public class NoImageTemplate
Sample template class for removing all images from a web page, and replacing them with their alt strings. This class is used by the TemplateHandler Each image is replaced by a text string defined by the server property "template", which the first "%" replaced by the contents of the alt attribute. Defaults to "[<b>%<b>]".
template
Field Summary |
---|
Fields inherited from class sunlabs.brazil.template.Template |
---|
debug |
Constructor Summary | |
---|---|
NoImageTemplate()
|
Method Summary | |
---|---|
boolean |
init(RewriteContext hr)
Save a reference to our request properties We'll use it some day to tailor the image display |
void |
tag_img(RewriteContext hr)
Convert the html tag img into text using the alt string |
Methods inherited from class sunlabs.brazil.template.Template |
---|
debug, debug, done |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoImageTemplate()
Method Detail |
---|
public boolean init(RewriteContext hr)
init
in interface TemplateInterface
init
in class Template
public void tag_img(RewriteContext hr)
h
- The name/value pairs
src=
alt=<...>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |