org.apache.ecs
Class TH

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

public class TH
extends MultiPartElement

This class creates a <TH> object.

Version:
$Id: TH.java,v 1.4 1999/04/22 19:14:46 stephan Exp $
Author:
Stephan Nagy, Jon S. Stevens

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

Constructor Detail

TH

public TH()
Basic constructor. Use set* methods.

TH

public TH(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 TH setAbbr(java.lang.String cdata)
Sets the ABBR="" attribute.
Parameters:
cdata - sets the ABBR="" attribute.

setAxis

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

setAxes

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

setRowSpan

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

setRowSpan

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

setColSpan

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

setColSpan

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

setNoWrap

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

setWidth

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

setWidth

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

setHeight

public TH 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 TH 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 TH 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 TH setChar(java.lang.String character)
Sets the CHAR="" attribute.
Parameters:
character - the character to use for alignment.

setCharOff

public TH 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 TH 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 TH setBgColor(java.lang.String color)
Sets the BGCOLOR="" attribute
Parameters:
color - sets the background color of the cell.

addElement

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

addElement

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