|
||||||||||
| 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.ScriptTag
Encapsulates all the attributes of an HTML "SCRIPT" 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 | |
ScriptTag()
Default constructor. |
|
ScriptTag(java.lang.Object contents)
Calls the default constructor. |
|
| Method Summary | |
java.lang.String |
getLanguage()
Returns the value of the HTML Tag LANGUAGE attribute. |
java.lang.String |
getSrc()
Returns the value of the HTML Tag SRC attribute. |
java.lang.String |
getType()
Returns the value of the HTML Tag TYPE attribute. |
protected void |
resetTagSpecificInformation()
Resets the tag attributes and content of the HTML Tag to their default values. |
void |
setLanguage(java.lang.String attribute)
Sets the HTML Tag LANGUAGE attribute. |
void |
setSrc(java.lang.String attribute)
Sets the HTML Tag SRC attribute. |
void |
setType(java.lang.String attribute)
Sets the TYPE 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 ScriptTag()
TagPropertyConstants.SCRIPT_TAG).
TagPropertyConstants.SCRIPT_TAGpublic ScriptTag(java.lang.Object contents)
ContentWrapper.setContents(java.lang.Object)| Method Detail |
public java.lang.String getLanguage()
public java.lang.String getSrc()
public java.lang.String getType()
public void setLanguage(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag LANGUAGE attributeHTMLTag.reconstructTagpublic void setSrc(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag SRC attributeHTMLTag.reconstructTagpublic void setType(java.lang.String attribute)
HTMLTag.reconstructTag value to true.
attribute - the new TYPE valueTagPropertyConstants.isImportTagType(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 | |||||||||