com.ge.research.html
Class ContentWrapperTag

java.lang.Object
  extended bycom.ge.research.html.HTMLTag
      extended bycom.ge.research.html.ContentWrapperTag
All Implemented Interfaces:
ContentWrapper
Direct Known Subclasses:
AddressTag, AnchorTag, BigTag, BlinkTag, BoldTag, CenterTag, CiteTag, CodeTag, CommentTag, DefinitionTag, EmphasisTag, FontTag, ItalicTag, KeyInTag, LayerTag, NoBreakTag, NoEmbedTag, NoFramesTag, NoScriptTag, SampleOutputTag, ScriptTag, SmallTag, StrikethroughTag, StrongTag, SubscriptTag, SuperscriptTag, TeletypeTag, UnderlineTag, VariableTag

public abstract class ContentWrapperTag
extends HTMLTag
implements ContentWrapper

Abstract class which defines an HTML tag which can enclose any (non-restricted) content. Defines the accessors and validators of the wrapped content.

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:33 $
Author:
garbiras

Field Summary
 
Fields inherited from class com.ge.research.html.HTMLTag
HORIZONTAL_LINE, LINEBREAK, reconstructTag, tag, WHITESPACE
 
Constructor Summary
protected ContentWrapperTag(java.lang.String tagName)
          Default constructor.
 
Method Summary
 java.lang.String getContentEditable()
           
 java.lang.Object getContents()
          Returns the contents of the HTML Tag.
 boolean getNowrap()
          Returns the value of the HTML Tag NOWRAP attribute.
protected  void resetTagSpecificInformation()
          Resets the tag attributes and content of the HTML Tag to their default values.
 void setContentEditable(java.lang.String editable)
           
 void setContents(java.lang.Object contents)
          Sets the contents of this tag.
 void setNowrap(boolean attribute)
          Sets the HTML Tag NOWRAP attribute.
protected  void writeTagSpecificAttributes()
          Adds the tag specific attribute information to the HTML Tag.
protected  void writeTagSpecificData()
          Adds the tag content to the HTML Tag.
 
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

ContentWrapperTag

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

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

getContentEditable

public java.lang.String getContentEditable()

getContents

public java.lang.Object getContents()
Description copied from interface: ContentWrapper
Returns the contents of the HTML Tag.

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

getNowrap

public boolean getNowrap()
Description copied from interface: ContentWrapper
Returns the value of the HTML Tag NOWRAP attribute.

Specified by:
getNowrap in interface ContentWrapper
Returns:
true if the contents of the tag do not word wrap; false if the contents of the tag should word wrap

setContentEditable

public void setContentEditable(java.lang.String editable)

setContents

public void setContents(java.lang.Object contents)
Description copied from interface: ContentWrapper
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

setNowrap

public void setNowrap(boolean attribute)
Description copied from interface: ContentWrapper
Sets the HTML Tag NOWRAP attribute. Sets the value of the HTMLTag.reconstructTag to true.

Specified by:
setNowrap in interface ContentWrapper
Parameters:
attribute - true if this HTML Tag contents should not be word wrapped; false if this HTML Tag contents should be word wrapped.
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 HTMLTag
See Also:
HTMLTag.reset()

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 HTMLTag
See Also:
HTMLTag.toString()

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()