com.ge.research.html
Class TableDimensionTag

java.lang.Object
  extended bycom.ge.research.html.HTMLTag
      extended bycom.ge.research.html.TableElement
          extended bycom.ge.research.html.TableDimensionTag
All Implemented Interfaces:
ContentWrapper
Direct Known Subclasses:
TableHeaderTag

public class TableDimensionTag
extends TableElement
implements ContentWrapper

Encapsulates all the attributes of an HTML "TD" element, its accessors, validations, and default values.

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:32 $
Author:
garbiras
Created on:
Sep 9, 2002

Field Summary
 
Fields inherited from class com.ge.research.html.HTMLTag
HORIZONTAL_LINE, LINEBREAK, reconstructTag, tag, WHITESPACE
 
Constructor Summary
  TableDimensionTag()
          Calls default constructor with argument TagPropertyConstants.TABLE_DIMENSION_TAG
  TableDimensionTag(java.lang.Object contents)
          Calls the default constructor.
protected TableDimensionTag(java.lang.String tagName)
          Default constructor.
 
Method Summary
 java.lang.Object getContents()
          Returns the contents of the HTML Tag.
protected  void resetTagSpecificInformation()
          Resets the tag attributes and content of the HTML Tag to their default values.
 void setContents(java.lang.Object contents)
          Sets the contents of this tag.
protected  void writeTagSpecificData()
          Adds the tag content to the HTML Tag.
 
Methods inherited from class com.ge.research.html.TableElement
getAlign, getBackground, getBgColor, getBorder, getBorderColor, getBorderColorDark, getBorderColorLight, getCellPadding, getCellSpacing, getColspan, getFrame, getHeight, getNowrap, getRowspan, getRules, getVAlign, getWidth, setAlign, setBackground, setBgColor, setBorder, setBorderColor, setBorderColorDark, setBorderColorLight, setCellPadding, setCellSpacing, setColspan, setFrame, setHeight, setNowrap, setRowspan, setRules, setVAlign, setWidth, writeTagSpecificAttributes
 
Methods inherited from class com.ge.research.html.HTMLTag
addAttribute, addAttribute, getId, getOnClick, getOnContextMenu, getOnDblClick, getOnDrag, getOnDragEnd, getOnDragStart, getOnFocus, getOnFocusOut, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnMoveEnd, getOnMoveStart, getStyle, getStyleClass, getTitle, removeAttribute, reset, setId, setOnClick, setOnContextMenu, setOnDblClick, setOnDrag, setOnDragEnd, setOnDragStart, setOnFocus, setOnFocusOut, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnMoveEnd, setOnMoveStart, setStyle, setStyleClass, setTitle, toString, writeAttribute, writeAttribute, writeAttribute, writeAttribute, writeAttribute, writeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ge.research.html.ContentWrapper
getNowrap, setNowrap
 

Constructor Detail

TableDimensionTag

public TableDimensionTag()
Calls default constructor with argument TagPropertyConstants.TABLE_DIMENSION_TAG

See Also:
TagPropertyConstants.TABLE_DIMENSION_TAG

TableDimensionTag

public TableDimensionTag(java.lang.Object contents)
Calls the default constructor. Sets the tag contents.

See Also:
setContents(java.lang.Object)

TableDimensionTag

protected TableDimensionTag(java.lang.String tagName)
Default constructor. Calls super(tagName).

Parameters:
tagName - the HTML type of this tag
Method Detail

getContents

public java.lang.Object getContents()
Returns the contents of the HTML Tag.

Specified by:
getContents in interface ContentWrapper
Returns:
The current contents of the HTML Tag

setContents

public void setContents(java.lang.Object contents)
Sets the contents of this tag. Sets the HTMLTag.reconstructTag value to true.

Specified by:
setContents in interface ContentWrapper
Parameters:
contents - the content for this tag
See Also:
HTMLTag.reconstructTag

resetTagSpecificInformation

protected void resetTagSpecificInformation()
Description copied from class: HTMLTag
Resets the tag attributes and content of the HTML Tag to their default values. Called by HTMLTag.reset(). This method is not implemented in HTMLTag. Subclasses that contain tag content information should implement this method to set their information to their default values.

Overrides:
resetTagSpecificInformation in class TableElement

writeTagSpecificData

protected void writeTagSpecificData()
Description copied from class: HTMLTag
Adds the tag content to the HTML Tag. Called by HTMLTag.toString(). This method is not implemented in HTMLTag. Subclasses that contain tag content information should implement this method to writeout that content in between the opening and closing tags.

Overrides:
writeTagSpecificData in class HTMLTag
See Also:
HTMLTag.toString()