org.mmbase.bridge.jsp.taglib
Interface Writer

All Known Implementing Classes:
AliasListTag, CountRelationsTag, FieldInfoTag, FieldTag, FormatterTag, IndexTag, InfoTag, NodeInfoTag, SizeTag, TimeTag, WriteTag, GetInfoTag, UrlTag

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.

Author:
Michiel Meeuwissen

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

Method Detail

setWrite

public void setWrite(java.lang.String t)
              throws javax.servlet.jsp.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.

setJspvar

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

setVartype

public void setVartype(java.lang.String t)
                throws javax.servlet.jsp.JspTagException
Type of the jspvar.

getWriterValue

public java.lang.Object getWriterValue()
                                throws javax.servlet.jsp.JspTagException
Subtags of 'Writer' tag can request the value.

haveBody

public void haveBody()
              throws javax.servlet.jsp.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.
Since:
MMBase-1.6


MMBase build 1.6.5.20030923