com.mentata.sg8
Class ValuesTableTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.SimpleTagSupport
      extended bycom.mentata.sg8.ValuesTableTag
All Implemented Interfaces:
JspTag, SimpleTag

public class ValuesTableTag
extends SimpleTagSupport

A tag handler for displaying the values of an attribute in a multi-column table. This tag handler is used to produce a formatted table of the values of an attribute. It has action attributes for the populated SG8 attribute, the number of columns for the table, and for a table cellspacing dimension. This tag does not appear in any of the standard SG8 JSP content, but could be used in custom versions of the display page.

Since:
0.7
Author:
Jon Roberts

Constructor Summary
ValuesTableTag()
           
 
Method Summary
 void doTag()
          Writes a formatted table of attribute values.
 void setAttribute(SG8Attribute attribute)
          Defines an attribute parameter for the tag context.
 void setColumns(int columns)
          Defines a columns parameter for the tag context.
 void setSpacing(int spacing)
          Defines a spacing parameter for the tag context.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValuesTableTag

public ValuesTableTag()
Method Detail

setAttribute

public void setAttribute(SG8Attribute attribute)
Defines an attribute parameter for the tag context.

Parameters:
attribute - an attribute name

setColumns

public void setColumns(int columns)
Defines a columns parameter for the tag context.

Parameters:
columns - an number of columns for the table

setSpacing

public void setSpacing(int spacing)
Defines a spacing parameter for the tag context.

Parameters:
spacing - a number to use for the table tag's cellspacing parameter

doTag

public void doTag()
           throws IOException
Writes a formatted table of attribute values.

Throws:
IOException - if there was an error writing to the output stream