org.apache.commons.jelly.tags.swing
Class TableLayoutTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.commons.jelly.tags.swing.LayoutTagSupport
          extended by org.apache.commons.jelly.tags.swing.TableLayoutTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class TableLayoutTag
extends LayoutTagSupport

A Layout tag which mimicks the table, tr and td tags of HTML.

Version:
$Revision: 155420 $
Author:
James Strachan

Field Summary
private static org.apache.commons.logging.Log log
          The Log to which logging calls will be made.
private  int rowCount
           
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
TableLayoutTag()
           
 
Method Summary
 void addCell(Cell cell)
          Adds a new cell to the current grid
protected  java.awt.LayoutManager createLayoutManager()
          Creates a GridBagLayout
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 int nextRowIndex()
          Creates a new row index for child tags
 
Methods inherited from class org.apache.commons.jelly.tags.swing.LayoutTagSupport
addLayoutComponent, getComponentTag, setVar
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
The Log to which logging calls will be made.


rowCount

private int rowCount
Constructor Detail

TableLayoutTag

public TableLayoutTag()
Method Detail

addCell

public void addCell(Cell cell)
             throws org.apache.commons.jelly.JellyTagException
Adds a new cell to the current grid

Throws:
org.apache.commons.jelly.JellyTagException

nextRowIndex

public int nextRowIndex()
Creates a new row index for child tags


doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Specified by:
doTag in interface org.apache.commons.jelly.Tag
Overrides:
doTag in class LayoutTagSupport
Throws:
org.apache.commons.jelly.JellyTagException

createLayoutManager

protected java.awt.LayoutManager createLayoutManager()
Creates a GridBagLayout

Specified by:
createLayoutManager in class LayoutTagSupport