com.ge.research.html
Class IFrameTag

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

public class IFrameTag
extends LayerTag

Encapsulates all the attributes of an HTML "IFRAME" 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
IFrameTag()
          Default constructor.
IFrameTag(java.lang.Object contents)
          Calls the default constructor.
 
Method Summary
 java.lang.String getFrameborder()
          Returns the value of the HTML Tag FRAMEBORDER attribute.
 java.lang.String getHeight()
          Returns the value of the HTML Tag HEIGHT attribute.
 java.lang.String getName()
          Returns the value of the HTML Tag NAME attribute.
 java.lang.String getOnLoad()
          Returns the value of the HTML Tag ONLOAD behavior.
 java.lang.String getScrolling()
          Returns the value of the HTML Tag SCROLLING attribute.
 java.lang.String getSrc()
          Returns the value of the HTML Tag SRC attribute.
 java.lang.String getWidth()
          Returns the value of the HTML Tag WIDTH attribute.
protected  void resetTagSpecificInformation()
          Resets the tag attributes and content of the HTML Tag to their default values.
 void setFrameborder(java.lang.String attribute)
          Sets the HTML Tag FRAMEBORDER attribute.
 void setHeight(int attribute, boolean asPercent)
          Sets the HTML Tag HEIGHT attribute.
 void setName(java.lang.String attribute)
          Sets the HTML Tag NAME attribute.
 void setOnLoad(java.lang.String attribute)
          Sets the HTML Tag ONLOAD behavior.
 void setScrolling(java.lang.String attribute)
          Sets the scrolling attribute and validates its value.
 void setSrc(java.lang.String attribute)
          Sets the HTML Tag SRC attribute.
 void setWidth(int attribute, boolean asPercent)
          Sets the HTML Tag WIDTH attribute.
protected  void writeTagSpecificAttributes()
          Adds the tag specific attribute information to the HTML Tag.
 
Methods inherited from class com.ge.research.html.LayerTag
getAlign, getOnScroll, setAlign, setOnScroll
 
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

IFrameTag

public IFrameTag()
Default constructor. Calls super(TagPropertyConstants.IFRAME_TAG).

See Also:
TagPropertyConstants.IFRAME_TAG

IFrameTag

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

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

getFrameborder

public java.lang.String getFrameborder()
Returns the value of the HTML Tag FRAMEBORDER attribute.

Returns:
The current value of the HTML Tag FRAMEBORDER attribute

getHeight

public java.lang.String getHeight()
Returns the value of the HTML Tag HEIGHT attribute.

Returns:
The current value of the HTML Tag HEIGHT attribute

getName

public java.lang.String getName()
Returns the value of the HTML Tag NAME attribute.

Returns:
The current value of the HTML Tag NAME attribute

getOnLoad

public java.lang.String getOnLoad()
Returns the value of the HTML Tag ONLOAD behavior.

Returns:
The current value of the HTML Tag ONLOAD behavior

getScrolling

public java.lang.String getScrolling()
Returns the value of the HTML Tag SCROLLING attribute.

Returns:
The current value of the HTML Tag SCROLLING attribute

getSrc

public java.lang.String getSrc()
Returns the value of the HTML Tag SRC attribute.

Returns:
The current value of the HTML Tag SRC attribute

getWidth

public java.lang.String getWidth()
Returns the value of the HTML Tag WIDTH attribute.

Returns:
The current value of the HTML Tag WIDTH attribute

setFrameborder

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

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

setHeight

public void setHeight(int attribute,
                      boolean asPercent)
Sets the HTML Tag HEIGHT attribute. Sets the value of the HTMLTag.reconstructTag to true.

Parameters:
attribute - the new height value
asPercent - true if the value of attribute should be treated as a percentage, and thus append a percent sign after the height value; false if the value should be treated as an absolute pixel specification, and written as is
See Also:
HTMLTag.reconstructTag

setName

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

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

setOnLoad

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

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

setScrolling

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

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

setSrc

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

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

setWidth

public void setWidth(int attribute,
                     boolean asPercent)
Sets the HTML Tag WIDTH attribute. Sets the value of the HTMLTag.reconstructTag to true.

Parameters:
attribute - the new width value
asPercent - true if the value of attribute should be treated as a percentage, and thus append a percent sign after the width value; false if the value should be treated as an absolute pixel specification, and written as is
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 LayerTag

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 LayerTag