org.apache.ecs.html
Class TD

java.lang.Object
  |
  +--org.apache.ecs.GenericElement
        |
        +--org.apache.ecs.ElementAttributes
              |
              +--org.apache.ecs.ConcreteElement
                    |
                    +--org.apache.ecs.MultiPartElement
                          |
                          +--org.apache.ecs.html.TD

public class TD
extends MultiPartElement
implements Printable

This class creates a <TD> object.

Version:
$Id: TD.java,v 1.3 1999/07/06 05:57:00 stephan Exp $
See Also:
Serialized Form

Fields inherited from class org.apache.ecs.ConcreteElement
h_element, v_element
 
Fields inherited from class org.apache.ecs.ElementAttributes
attribute_equality_sign, attribute_filter, attribute_quote, attribute_quote_char, filter_attribute_state
 
Fields inherited from class org.apache.ecs.GenericElement
__text, begin_end_modifier, begin_end_modifier_defined, begin_start_modifier, begin_start_modifier_defined, case_type, codeset, element, element_type, end_element, end_end_modifier, end_end_modifier_defined, end_modifier_defined, end_start_modifier, end_start_modifier_defined, end_tag, filter, filter_state, position, pretty_print, start_modifier_defined, start_tag, tabLevel, VERSION
 
Constructor Summary
TD()
          Basic Constructor use set* methods.
TD(boolean close)
          Basic Constructor use set* methods.
TD(Element element)
          Basic Constructor use set* methods.
TD(java.lang.String element)
          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 addElement(java.lang.String hashcode, Element element)
          Adds an Element to the element.
 TD addElement(java.lang.String hashcode, java.lang.String element)
          Adds an Element to the element.
 TD removeElement(java.lang.String hashcode)
          Removes an Element from 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 setBackground(java.lang.String url)
          Sets the BACKGROUND="" 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 colspan)
          Sets the COLSPAN="" attribute
 TD setColSpan(java.lang.String colspan)
          Sets the COLSPAN="" attribute
 TD setHeight(int height)
          Supplies user agents with a recommended cell height.
 TD setHeight(java.lang.String height)
          Supplies user agents with a recommended cell height.
 TD setNoWrap(boolean wrap)
          Sets word wrap on or off.
 TD setRowSpan(int rowspan)
          Sets the ROWSPAN="" attribute
 TD setRowSpan(java.lang.String rowspan)
          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)
          Supplies user agents with a recommended cell width.
 TD setWidth(java.lang.String width)
          Supplies user agents with a recommended cell width.
 
Methods inherited from class org.apache.ecs.ConcreteElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, clone, elements, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistry
 
Methods inherited from class org.apache.ecs.ElementAttributes
addAttribute, createStartTag, getAttributeEqualitySign, getAttributeFilter, getAttributeFilterState, getAttributeQuote, getAttributeQuoteChar, hasAttribute, removeAttribute, setAttributeEqualitySign, setAttributeFilter, setAttributeFilterState, setAttributeQuote, setAttributeQuoteChar, setClass, setDir, setID, setLang, setStyle, setTitle
 
Methods inherited from class org.apache.ecs.GenericElement
alterCase, createEndTag, getBeginEndModifier, getBeginEndModifierDefined, getBeginStartModifier, getBeginStartModifierDefined, getCase, getCodeSet, getElementHashEntry, getElementType, getEndEndModifier, getEndEndModifierDefined, getEndStartModifier, getEndStartModifierDefined, getEndTagChar, getFilter, getFilterState, getNeedClosingTag, getPrettyPrint, getStartTagChar, getTabLevel, getTagPosition, getTagText, getVersion, putTabs, putTabs, removeBeginEndModifier, removeBeginStartModifier, removeEndEndModifier, removeEndStartModifier, setBeginEndModifier, setBeginEndModifierDefined, setBeginModifier, setBeginModifier, setBeginStartModifier, setBeginStartModifierDefined, setCase, setCodeSet, setElementType, setEndEndModifier, setEndEndModifierDefined, setEndModifier, setEndModifier, setEndStartModifier, setEndStartModifierDefined, setEndTagChar, setFilter, setFilterState, setNeedClosingTag, setPrettyPrint, setStartTagChar, setTabLevel, setTagPosition, setTagText, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

TD

public TD()
Basic Constructor use set* methods.

TD

public TD(Element element)
Basic Constructor use set* methods.

TD

public TD(java.lang.String element)
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 rowspan)
Sets the ROWSPAN="" attribute
Parameters:
rowspan - Number of rows spaned by cell

setRowSpan

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

setColSpan

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

setColSpan

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

setNoWrap

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

setWidth

public TD setWidth(int width)
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)
Supplies user agents with a recommended cell width. (Pixel Values)
Parameters:
width - how many pixels to make cell

setHeight

public TD setHeight(int height)
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)
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.

setBackground

public TD setBackground(java.lang.String url)
Sets the BACKGROUND="" attribute
Parameters:
url - sets the background to some image specified by url.

addElement

public TD addElement(java.lang.String hashcode,
                     Element element)
Adds an Element to the element.
Parameters:
hashcode - name of element for hash table
element - Adds an Element to the element.

addElement

public TD addElement(java.lang.String hashcode,
                     java.lang.String element)
Adds an Element to the element.
Parameters:
hashcode - name of element for hash table
element - Adds an Element to the element.

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.

removeElement

public TD removeElement(java.lang.String hashcode)
Removes an Element from the element.
Parameters:
hashcode - the name of the element to be removed.