|
||||||||||
| 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.AppletTag
Encapsulates all the attributes of an HTML "APPLET" 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 | |
AppletTag()
Default constructor. |
|
| Method Summary | |
void |
addParam(java.lang.String key,
java.lang.String value)
Adds a new param element to the applet tag. |
boolean |
containsParam(java.lang.String key)
Determines if there is currently a parameter element with "NAME= key" in the current set of parameters of this tag. |
java.lang.String |
getArchive()
Returns the value of the HTML Tag archive attribute. |
java.lang.String |
getCode()
Returns the value of the HTML Tag code attribute. |
java.lang.String |
getCodebase()
Returns the value of the HTML Tag codebase attribute. |
int |
getHeight()
Returns the value of the HTML Tag height attribute. |
java.util.HashMap |
getParams()
Returns a copy of the internal mapping of parameter names to their values. |
java.lang.String |
getParamValue(java.lang.String key)
Returns the VALUE attribute for the ParamTag element with "NAME=key" |
int |
getWidth()
Returns the value of the HTML Tag width attribute. |
boolean |
removeParam(java.lang.String key)
Removes the specified parameter element from the applet tag Sets the value of the HTMLTag.reconstructTag to true |
void |
removeParams()
Removes all parameter elements from the applet tag Sets the value of the HTMLTag.reconstructTag to true |
protected void |
resetTagSpecificInformation()
Resets the tag attributes and content of the HTML Tag to their default values. |
void |
setArchive(java.lang.String attribute)
Sets the HTML Tag archive attribute. |
void |
setCode(java.lang.String attribute)
Sets the HTML Tag code attribute. |
void |
setCodebase(java.lang.String attribute)
Sets the HTML Tag codebase attribute. |
void |
setHeight(int attribute)
Sets the HTML Tag height attribute. |
void |
setHeight(java.lang.String attribute)
Sets the HTML Tag height attribute. |
void |
setWidth(int attribute)
Sets the HTML Tag width attribute. |
void |
setWidth(java.lang.String attribute)
Sets the HTML Tag width attribute. |
protected void |
writeTagSpecificAttributes()
Adds the tag specific attribute information to the HTML Tag. |
protected void |
writeTagSpecificData()
Iterates through the set of parameters and constructs the ParamTag element tags for them,
and adds them to the applet tag. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AppletTag()
TagPropertyConstants.APPLET_TAG).
TagPropertyConstants.APPLET_TAG| Method Detail |
public void addParam(java.lang.String key,
java.lang.String value)
key - the parameter NAME attributevalue - the parameter VALUE attributepublic boolean containsParam(java.lang.String key)
key" in the current set of parameters of this tag.
key - the PARAM_TAG element to try to find within the list of applet parameters
true if a parameter with "NAME=key" is found;
false if no such parameter is foundpublic java.lang.String getArchive()
public java.lang.String getCode()
public java.lang.String getCodebase()
public int getHeight()
public java.util.HashMap getParams()
public java.lang.String getParamValue(java.lang.String key)
ParamTag element with "NAME=key"
key - the parameter NAME attribute value to compare against each of the parameter elements of the tag
key".
If no parameter element is found, null is returned.public int getWidth()
public boolean removeParam(java.lang.String key)
HTMLTag.reconstructTag to true
key - the parameter element to remove, identified by it's NAME attribute
true if the remove was successful; false otherwiseHTMLTag.reconstructTagpublic void removeParams()
HTMLTag.reconstructTag to true
HTMLTag.reconstructTagpublic void setArchive(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag archive attributeHTMLTag.reconstructTagpublic void setCode(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag code attributeHTMLTag.reconstructTagpublic void setCodebase(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag codebase attributeHTMLTag.reconstructTagpublic void setHeight(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag height attributeHTMLTag.reconstructTag
public void setHeight(java.lang.String attribute)
throws java.lang.NumberFormatException
String to an int
and call the setHeight(int) method.
attribute - the new value for the HTML Tag height attribute
java.lang.NumberFormatException - If _height cannot be converted to an intInteger.parseInt(java.lang.String),
setHeight(int)public void setWidth(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag width attributeHTMLTag.reconstructTag
public void setWidth(java.lang.String attribute)
throws java.lang.NumberFormatException
String to an int
and call the setWidth(int) method.
attribute - the new value for the HTML Tag width attribute
java.lang.NumberFormatException - If _width cannot be converted to an intInteger.parseInt(java.lang.String),
setWidth(int)protected 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 HTMLTagHTMLTag.reset()protected 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 HTMLTagHTMLTag.toString()protected void writeTagSpecificData()
ParamTag element tags for them,
and adds them to the applet tag.
writeTagSpecificData in class HTMLTagParamTag.ParamTag(java.lang.String, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||