org.apache.ecs
Class TD

java.lang.Object
  |
  +--org.apache.ecs.Element
        |
        +--org.apache.ecs.ElementAttributes
              |
              +--org.apache.ecs.MultiPartElement
                    |
                    +--org.apache.ecs.TD

public class TD
extends MultiPartElement

This class creates a <TD> object.

Version:
$Id: TD.java,v 1.1.1.1 1999/04/20 01:18:58 jonbolt Exp $
Author:
Stephan Nagy, Jon S. Stevens

Fields inherited from class org.apache.ecs.MultiPartElement
v_element
 
Fields inherited from class org.apache.ecs.Element
attribute_filter, case_type, codeset, element, end_element, end_modifier, end_modifier_defined, filter, filter_attribute_state, filter_state, NO_ATTRIBUTE_VALUE, start_modifier, start_modifier_defined, VERSION
 
Constructor Summary
TD()
          Basic Constructor use set* methods.
TD(boolean close)
          Basic Constructor use set* methods.
 
Method Summary
(package private)  void ()
          private initializer.
 TD addElement(Element element)
          Adds an Element to the element.
 TD addElement(java.lang.String element)
          Adds an Element to the element.
 TD setAbbr(java.lang.String cdata)
          Sets the ABBR="" attribute.
 TD setAlign(java.lang.String align)
          Sets the ALIGN="" attribute convience variables are provided in the AlignType interface
 TD setAxes(java.lang.String id_refs)
          Sets the AXES="" attribute
 TD setAxis(java.lang.String cdata)
          Sets the AXIS="" attribute
 TD setBgColor(java.lang.String color)
          Sets the BGCOLOR="" attribute
 TD setChar(java.lang.String character)
          Sets the CHAR="" attribute.
 TD setCharOff(int char_off)
          Sets the CHAROFF="" attribute.
 TD setCharOff(java.lang.String char_off)
          Sets the CHAROFF="" attribute.
 TD setColSpan(int span)
          Sets the COLSPAN="" attribute
 TD setColSpan(java.lang.String span)
          Sets the COLSPAN="" attribute
 TD setHeight(int height)
          Deprecated.  
 TD setHeight(java.lang.String height)
          Deprecated.  
 TD setNoWrap(boolean wrap)
          Deprecated.  
 TD setRowSpan(int span)
          Sets the ROWSPAN="" attribute
 TD setRowSpan(java.lang.String span)
          Sets the ROWSPAN="" attribute
 TD setVAlign(java.lang.String valign)
          Sets the VALIGN="" attribute convience variables are provided in the AlignType interface
 TD setWidth(int width)
          Deprecated.  
 TD setWidth(java.lang.String width)
          Deprecated.  
 
Methods inherited from class org.apache.ecs.MultiPartElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistry
 
Methods inherited from class org.apache.ecs.ElementAttributes
setClass, setDir, setID, setLang, setStyle, setTitle
 
Methods inherited from class org.apache.ecs.Element
addAttribute, alterCase, getAttributeFilterState, getCase, getCodeSet, getElementHashEntry, getEndModifier, getEndModifierDefined, getFilter, getFilterState, getHtmlElementType, getNeedClosingTag, getStartModifier, getStartModifierDefined, getVersion, hasAttribute, removeAttribute, removeEndModifier, removeStartModifier, setAttributeFilter, setAttributeFilterState, setCase, setCodeSet, setEndModifier, setEndModifierDefined, setFilter, setFilterState, setHtmlElementType, setModifier, setModifier, setNeedClosingTag, setStartModifier, setStartModifierDefined, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

TD

public TD()
Basic Constructor use set* methods.

TD

public TD(boolean close)
Basic Constructor use set* methods.
Parameters:
close. - Print the closing tag or not.
Method Detail

void ()
private initializer.
Overrides:
in class MultiPartElement

setAbbr

public TD setAbbr(java.lang.String cdata)
Sets the ABBR="" attribute.
Parameters:
cdata - sets the ABBR="" attribute.

setAxis

public TD setAxis(java.lang.String cdata)
Sets the AXIS="" attribute
Parameters:
cdata - sets the AXIS="" attribute

setAxes

public TD setAxes(java.lang.String id_refs)
Sets the AXES="" attribute
Parameters:
id_refs - list of id's for header cells

setRowSpan

public TD setRowSpan(int span)
Sets the ROWSPAN="" attribute
Parameters:
span - Number of rows spaned by cell

setRowSpan

public TD setRowSpan(java.lang.String span)
Sets the ROWSPAN="" attribute
Parameters:
span - Number of rows spaned by cell

setColSpan

public TD setColSpan(int span)
Sets the COLSPAN="" attribute
Parameters:
span - Number of columns spanned by cell

setColSpan

public TD setColSpan(java.lang.String span)
Sets the COLSPAN="" attribute
Parameters:
span - Number of columns spanned by cell

setNoWrap

public TD setNoWrap(boolean wrap)
Deprecated.  
Sets word wrap on or off.
Parameters:
wrap - turn word wrap on or off.

setWidth

public TD setWidth(int width)
Deprecated.  
Supplies user agents with a recommended cell width. (Pixel Values)
Parameters:
width - how many pixels to make cell

setWidth

public TD setWidth(java.lang.String width)
Deprecated.  
Supplies user agents with a recommended cell width. (Pixel Values)
Parameters:
width - how many pixels to make cell

setHeight

public TD setHeight(int height)
Deprecated.  
Supplies user agents with a recommended cell height. (Pixel Values)
Parameters:
height - how many pixels to make cell

setHeight

public TD setHeight(java.lang.String height)
Deprecated.  
Supplies user agents with a recommended cell height. (Pixel Values)
Parameters:
height - how many pixels to make cell

setAlign

public TD setAlign(java.lang.String align)
Sets the ALIGN="" attribute convience variables are provided in the AlignType interface
Parameters:
align - Sets the ALIGN="" attribute

setVAlign

public TD setVAlign(java.lang.String valign)
Sets the VALIGN="" attribute convience variables are provided in the AlignType interface
Parameters:
valign - Sets the ALIGN="" attribute

setChar

public TD setChar(java.lang.String character)
Sets the CHAR="" attribute.
Parameters:
character - the character to use for alignment.

setCharOff

public TD setCharOff(int char_off)
Sets the CHAROFF="" attribute.
Parameters:
char_off - When present this attribute specifies the offset of the first occurrence of the alignment character on each line.

setCharOff

public TD setCharOff(java.lang.String char_off)
Sets the CHAROFF="" attribute.
Parameters:
char_off - When present this attribute specifies the offset of the first occurrence of the alignment character on each line.

setBgColor

public TD setBgColor(java.lang.String color)
Sets the BGCOLOR="" attribute
Parameters:
color - sets the background color of the cell.

addElement

public TD addElement(Element element)
Adds an Element to the element.
Parameters:
element - Adds an Element to the element.

addElement

public TD addElement(java.lang.String element)
Adds an Element to the element.
Parameters:
element - Adds an Element to the element.