com.ge.research.html
Class LayerTag

java.lang.Object
  extended bycom.ge.research.html.HTMLTag
      extended bycom.ge.research.html.ContentWrapperTag
          extended bycom.ge.research.html.LayerTag
All Implemented Interfaces:
ContentWrapper
Direct Known Subclasses:
CaptionTag, DivTag, Header1Tag, Header2Tag, Header3Tag, Header4Tag, Header5Tag, Header6Tag, IFrameTag, ParaTag, SpanTag

public abstract class LayerTag
extends ContentWrapperTag

Abstract class which defines a non-tangible HTML layer construct. Encapsulates all the attributes of such elements, their accessors, validations, and default values.

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:31 $
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
protected LayerTag(java.lang.String tagName)
          Default constructor.
 
Method Summary
 java.lang.String getAlign()
          Returns the value of the HTML Tag align attribute.
 java.lang.String getOnScroll()
          Returns the current value of the HTML Tag onScroll behavior.
protected  void resetTagSpecificInformation()
          Resets the tag attributes and content of the HTML Tag to their default values.
 void setAlign(java.lang.String attribute)
          Sets the align attribute and validates its value.
 void setOnScroll(java.lang.String attribute)
          Sets the HTML Tag onScroll behavior.
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

LayerTag

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

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

getAlign

public java.lang.String getAlign()
Returns the value of the HTML Tag align attribute.

Returns:
The current value of the HTML Tag align attribute

getOnScroll

public final java.lang.String getOnScroll()
Returns the current value of the HTML Tag onScroll behavior.

Returns:
The current value of the HTML Tag onScroll behavior

setAlign

public void setAlign(java.lang.String attribute)
Sets the align attribute and validates its value. If the new value is not an acceptable value, then the align attribute is set to null. Sets the HTMLTag.reconstructTag value to true.

Parameters:
attribute - the new align value
See Also:
TagPropertyConstants.isAlignType(java.lang.String), HTMLTag.reconstructTag

setOnScroll

public final void setOnScroll(java.lang.String attribute)
Sets the HTML Tag onScroll behavior. Sets the value of the HTMLTag.reconstructTag to true.

Parameters:
attribute - the new value for the HTML TAG onScroll behavior
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