org.mmbase.bridge.jsp.taglib
Interface Writer

All Known Implementing Classes:
AliasListTag, CloudInfoTag, CountRelationsTag, DepthTag, FieldInfoTag, FieldTag, FormTag, FunctionTag, IndexTag, InfoTag, ListFunctionTag, NodeInfoTag, ShrinkTag, SizeTag, StringListTag, TimeTag, UrlWriterTag, WriteTag

public interface Writer

Writer tag are tags which can write something to the page (or to something else). To ensure a common behavior, this interface is created. Tags implementing this interface can (should?) use 'WriterHelper' for a quick implementation.

Version:
$Id: Writer.java,v 1.10 2003/06/06 10:03:10 pierre Exp $
Author:
Michiel Meeuwissen

Method Summary
 Object getWriterValue()
          Subtags of 'Writer' tag can request the value.
 void haveBody()
          To be used by child tags.
 void setEscape(String e)
          (Override) escape behaviour
 void setJspvar(String j)
          JspVar to Create, and write to
 void setVartype(String t)
          Type of the jspvar.
 void setWrite(String t)
          Wether to write to page or not.
 

Method Detail

setWrite

public void setWrite(String t)
              throws JspTagException
Wether to write to page or not. This has to default to 'false' if the tag has a body, and to 'true' if it hasn't.

Throws:
JspTagException

setEscape

public void setEscape(String e)
               throws JspTagException
(Override) escape behaviour

Throws:
JspTagException

setJspvar

public void setJspvar(String j)
JspVar to Create, and write to


setVartype

public void setVartype(String t)
                throws JspTagException
Type of the jspvar.

Throws:
JspTagException

getWriterValue

public Object getWriterValue()
                      throws JspTagException
Subtags of 'Writer' tag can request the value.

Throws:
JspTagException

haveBody

public void haveBody()
              throws JspTagException
To be used by child tags. If they are present, they say to the writer tag that it has body, which it can use to determine a default for the write property.

Throws:
JspTagException
Since:
MMBase-1.6


MMBase build 1.8.1.20060716