|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.html.HTMLTag
com.ge.research.html.ContentWrapperTag
com.ge.research.html.AnchorTag
Encapsulates all the attributes of an HTML "A" element, its accessors, validations, and default values.
| Field Summary |
| Fields inherited from class com.ge.research.html.HTMLTag |
HORIZONTAL_LINE, LINEBREAK, reconstructTag, tag, WHITESPACE |
| Constructor Summary | |
AnchorTag()
Default constructor. |
|
AnchorTag(java.lang.Object contents)
Calls the default constructor. |
|
| Method Summary | |
java.lang.String |
getAlt()
Returns the value of the HTML Tag ALT attribute. |
java.lang.String |
getHref()
Returns the value of the HTML Tag HREF attribute. |
java.lang.String |
getName()
Returns the value of the HTML Tag NAME attribute. |
java.lang.String |
getTarget()
Returns the value of the HTML Tag TARGET attribute. |
protected void |
resetTagSpecificInformation()
Resets the tag attributes and content of the HTML Tag to their default values. |
void |
setAlt(java.lang.String attribute)
Sets the HTML Tag ALT attribute. |
void |
setHref(java.lang.String attribute)
Sets the HTML Tag HREF attribute. |
void |
setName(java.lang.String attribute)
Sets the HTML Tag NAME attribute. |
void |
setTarget(java.lang.String attribute)
Sets the HTML Tag TARGET attribute and validates its value. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AnchorTag()
TagPropertyConstants.ANCHOR_TAG).
TagPropertyConstants.ANCHOR_TAGpublic AnchorTag(java.lang.Object contents)
ContentWrapper.setContents(java.lang.Object)| Method Detail |
public java.lang.String getAlt()
public java.lang.String getHref()
public java.lang.String getName()
public java.lang.String getTarget()
public void setAlt(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag ALT attributeHTMLTag.reconstructTagpublic void setHref(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag HREF attributeHTMLTag.reconstructTagpublic void setName(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag NAME attributeHTMLTag.reconstructTagpublic void setTarget(java.lang.String attribute)
null.
Sets the HTMLTag.reconstructTag value to true.
attribute - the new value for the HTML Tag TARGET attributeTagPropertyConstants.isAnchorTarget(java.lang.String),
HTMLTag.reconstructTagprotected void resetTagSpecificInformation()
HTMLTagHTMLTag.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.
resetTagSpecificInformation in class ContentWrapperTagprotected void writeTagSpecificAttributes()
HTMLTagHTMLTag.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.
writeTagSpecificAttributes in class ContentWrapperTag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||