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

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.swing.TdTag
All Implemented Interfaces:
ContainerTag, org.apache.commons.jelly.Tag

public class TdTag
extends org.apache.commons.jelly.TagSupport
implements ContainerTag

Represents a tabular cell inside a <tl> tag inside a <tableLayout> tag which mimicks the <td> HTML tag.

Version:
$Revision: 155420 $
Author:
James Strachan

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
TdTag()
           
 
Method Summary
 void addChild(java.awt.Component component, java.lang.Object constraints)
          Adds a child component to this parent
protected  java.awt.GridBagConstraints createConstraints()
          Factory method to create a new constraints object
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
protected  int getAnchor()
           
 boolean isColfill()
          Returns the colfill.
 boolean isRowfill()
          Returns the rowfill.
 void setAlign(java.lang.String align)
          Sets the horizontal alignment to a case insensitive value of {LEFT, CENTER, RIGHT}
 void setColfill(boolean colfill)
          Sets whether or not this column should allow its component to stretch to fill the space available
 void setColspan(int colspan)
          Sets the number of columns that this cell should span.
 void setRowfill(boolean rowfill)
          Sets whether or not this row should allow its component to stretch to fill the space available
 void setRowspan(int rowspan)
          Sets the number of rows that this cell should span.
 void setValign(java.lang.String valign)
          Sets the vertical alignment to a case insensitive value of {TOP, MIDDLE, BOTTOM}
 
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
 

Constructor Detail

TdTag

public TdTag()
Method Detail

addChild

public void addChild(java.awt.Component component,
                     java.lang.Object constraints)
              throws org.apache.commons.jelly.JellyTagException
Adds a child component to this parent

Specified by:
addChild in interface ContainerTag
Throws:
org.apache.commons.jelly.JellyTagException

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
Throws:
org.apache.commons.jelly.JellyTagException

setAlign

public void setAlign(java.lang.String align)
Sets the horizontal alignment to a case insensitive value of {LEFT, CENTER, RIGHT}


setValign

public void setValign(java.lang.String valign)
Sets the vertical alignment to a case insensitive value of {TOP, MIDDLE, BOTTOM}


setColspan

public void setColspan(int colspan)
Sets the number of columns that this cell should span. The default value is 1


setRowspan

public void setRowspan(int rowspan)
Sets the number of rows that this cell should span. The default value is 1


isColfill

public boolean isColfill()
Returns the colfill.

Returns:
boolean

isRowfill

public boolean isRowfill()
Returns the rowfill.

Returns:
boolean

setColfill

public void setColfill(boolean colfill)
Sets whether or not this column should allow its component to stretch to fill the space available


setRowfill

public void setRowfill(boolean rowfill)
Sets whether or not this row should allow its component to stretch to fill the space available


createConstraints

protected java.awt.GridBagConstraints createConstraints()
Factory method to create a new constraints object


getAnchor

protected int getAnchor()
Returns:
the GridBagConstraints enumeration for achor


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.