com.ge.research.html
Class FontTag

java.lang.Object
  extended bycom.ge.research.html.HTMLTag
      extended bycom.ge.research.html.ContentWrapperTag
          extended bycom.ge.research.html.FontTag
All Implemented Interfaces:
ContentWrapper

public class FontTag
extends ContentWrapperTag

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

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:33 $
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
FontTag()
          Default constructor.
FontTag(java.lang.Object contents)
          Calls the default constructor.
 
Method Summary
 java.lang.String getColor()
          Returns the value of the HTML Tag COLOR attribute.
 java.lang.String getFace()
          Returns the value of the HTML Tag FACE attribute.
 java.lang.String getSize()
          Returns the value of the HTML Tag SIZE attribute.
protected  void resetTagSpecificInformation()
          Resets the tag attributes and content of the HTML Tag to their default values.
 void setColor(java.lang.String attribute)
          Sets the HTML Tag COLOR attribute.
 void setFace(java.lang.String attribute)
          Sets the HTML Tag FACE attribute.
 void setSize(java.lang.String attribute)
          Sets the HTML Tag SIZE attribute.
protected  void writeTagSpecificAttributes()
          Adds the tag specific attribute information to the HTML Tag.
 
Methods inherited from class com.ge.research.html.ContentWrapperTag
getContentEditable, getContents, getNowrap, setContentEditable, setContents, setNowrap, writeTagSpecificData
 
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
 

Constructor Detail

FontTag

public FontTag()
Default constructor. Calls super(TagPropertyConstants.FONT_TAG).

See Also:
TagPropertyConstants.FONT_TAG

FontTag

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

See Also:
ContentWrapper.setContents(java.lang.Object)
Method Detail

getColor

public java.lang.String getColor()
Returns the value of the HTML Tag COLOR attribute.

Returns:
The current value of the HTML Tag COLOR attribute

getFace

public java.lang.String getFace()
Returns the value of the HTML Tag FACE attribute.

Returns:
The current value of the HTML Tag FACE attribute

getSize

public java.lang.String getSize()
Returns the value of the HTML Tag SIZE attribute.

Returns:
The current value of the HTML Tag SIZE attribute

setColor

public void setColor(java.lang.String attribute)
Sets the HTML Tag COLOR attribute. Sets the value of the HTMLTag.reconstructTag to true.

Parameters:
attribute - the new value for the HTML Tag COLOR attribute
See Also:
HTMLTag.reconstructTag

setFace

public void setFace(java.lang.String attribute)
Sets the HTML Tag FACE attribute. Sets the value of the HTMLTag.reconstructTag to true.

Parameters:
attribute - the new value for the HTML Tag FACE attribute
See Also:
HTMLTag.reconstructTag

setSize

public void setSize(java.lang.String attribute)
Sets the HTML Tag SIZE attribute. Sets the value of the HTMLTag.reconstructTag to true.

Parameters:
attribute - the new value for the HTML Tag SIZE attribute
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 ContentWrapperTag

writeTagSpecificAttributes

protected void writeTagSpecificAttributes()
Description copied from class: HTMLTag
Adds the tag specific attribute information to the HTML Tag. Called by HTMLTag.toString(). This method is not implemented in HTMLTag. Subclasses that contain additional attribute information should implement this method to write those attributes in the inline tag.

Overrides:
writeTagSpecificAttributes in class ContentWrapperTag