|
||||||||||
| 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.ImageTag
Encapsulates all the attributes of an HTML "IMG" 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 | |
ImageTag()
Default constructor. |
|
| Method Summary | |
java.lang.String |
getAlign()
Returns the value of the HTML Tag ALIGN attribute. |
java.lang.String |
getAlt()
Returns the value of the HTML Tag ALT attribute. |
int |
getBorder()
Returns the value of the HTML Tag BORDER WIDTH attribute. |
int |
getHeight()
Returns the value of the HTML Tag HEIGHT attribute. |
int |
getHSpace()
Returns the value of the HTML Tag HSPACE attribute. |
boolean |
getIsMap()
Returns the value of the HTML Tag ISMAP attribute. |
java.lang.String |
getSrc()
Returns the value of the HTML Tag SRC attribute. |
java.lang.String |
getUseMap()
Returns the value of the HTML Tag USEMAP attribute. |
int |
getVSpace()
Returns the value of the HTML Tag VSPACE attribute. |
int |
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 |
setAlign(java.lang.String attribute)
Sets the align attribute and validates its value. |
void |
setAlt(java.lang.String attribute)
Sets the HTML Tag ALT attribute. |
void |
setBorder(int attribute)
Sets the HTML Tag BORDER WIDTH attribute. |
void |
setHeight(int attribute)
Sets the HTML Tag HEIGHT attribute. |
void |
setHSpace(int attribute)
Sets the HTML Tag HSPACE attribute. |
void |
setIsMap(boolean attribute)
Sets the HTML Tag ISMAP attribute. |
void |
setSrc(java.lang.String attribute)
Sets the HTML Tag SRC attribute. |
void |
setUseMap(java.lang.String attribute)
Sets the HTML Tag USEMAP attribute. |
void |
setVSpace(int attribute)
Sets the HTML Tag VSPACE attribute. |
void |
setWidth(int attribute)
Sets the HTML Tag WIDTH attribute. |
protected void |
writeTagSpecificAttributes()
Adds the tag specific attribute information to the HTML Tag. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ImageTag()
TagPropertyConstants.IMAGE_TAG).
TagPropertyConstants.IMAGE_TAG| Method Detail |
public java.lang.String getAlign()
public java.lang.String getAlt()
public int getBorder()
public int getHeight()
public int getHSpace()
public boolean getIsMap()
true if the tag uses a server-side image map;
false if the tag does not use a server-side image mappublic java.lang.String getSrc()
public java.lang.String getUseMap()
public int getVSpace()
public int getWidth()
public void setAlign(java.lang.String attribute)
null.
Sets the HTMLTag.reconstructTag value to true.
attribute - the new align valueTagPropertyConstants.isAlignType(java.lang.String),
HTMLTag.reconstructTagpublic void setAlt(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag ALT attributeHTMLTag.reconstructTagpublic void setBorder(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag BORDER WIDTH attributeHTMLTag.reconstructTagpublic void setHeight(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new height valueHTMLTag.reconstructTagpublic void setHSpace(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new hspace valueHTMLTag.reconstructTagpublic void setIsMap(boolean attribute)
HTMLTag.reconstructTag to true.
attribute - true if this HTML Tag should use a server-side image map;
false if this HTML Tag should not use a server side image mapHTMLTag.reconstructTagpublic void setSrc(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag SRC attributeHTMLTag.reconstructTagpublic void setUseMap(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag USEMAP attributeHTMLTag.reconstructTagpublic void setVSpace(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new vspace valueHTMLTag.reconstructTagpublic void setWidth(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new width valueHTMLTag.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 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||