org.ultrawork.wtk.mc.taglib
Class ListWriterTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--org.ultrawork.wtk.mc.taglib.ListWriterTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ListWriterTag
extends javax.servlet.jsp.tagext.TagSupport

Writes the components held by a org.ultrawork.wtk.mc.Container to the response while using a header, a footer and a separator between each component.

Version:
0.2
Author:
Nicolas Bonvin
See Also:
Serialized Form

Field Summary
private  java.lang.String footer
           
private  java.lang.String header
           
private  java.lang.String separator
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext, parent, values
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ListWriterTag()
           
 
Method Summary
 int doStartTag()
           
 java.lang.String getFooter()
          Gets the footer
 java.lang.String getHeader()
          Gets the header
 java.lang.String getSeparator()
          Gets the separator
protected  void printFooter()
           
protected  void printHeader(java.util.Iterator iterator)
           
protected  void printSeparator(java.util.Iterator iterator)
           
 void release()
           
 void setFooter(java.lang.String footer)
          Sets the footer
 void setHeader(java.lang.String header)
          Sets the header
 void setSeparator(java.lang.String separator)
          Sets the separator
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

header

private java.lang.String header

separator

private java.lang.String separator

footer

private java.lang.String footer
Constructor Detail

ListWriterTag

public ListWriterTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
See Also:
TagSupport.doEndTag()

printHeader

protected void printHeader(java.util.Iterator iterator)
                    throws java.io.IOException

printSeparator

protected void printSeparator(java.util.Iterator iterator)
                       throws java.io.IOException

printFooter

protected void printFooter()
                    throws java.io.IOException

release

public void release()
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport

getHeader

public java.lang.String getHeader()
Gets the header
Returns:
Returns a String

setHeader

public void setHeader(java.lang.String header)
Sets the header
Parameters:
header - The header to set

getSeparator

public java.lang.String getSeparator()
Gets the separator
Returns:
Returns a String

setSeparator

public void setSeparator(java.lang.String separator)
Sets the separator
Parameters:
separator - The separator to set

getFooter

public java.lang.String getFooter()
Gets the footer
Returns:
Returns a String

setFooter

public void setFooter(java.lang.String footer)
Sets the footer
Parameters:
footer - The footer to set


Copyright 2002 - ultrawork