|
||||||||||
| 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.OptionTag
Encapsulates all the attributes of an HTML "OPTION" 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 | |
OptionTag()
Default constructor. |
|
| Method Summary | |
boolean |
getSelected()
Returns true if this HTML Tag has a SELECTED attribute;
false if this HTML Tag does not have a SELECTED attribute. |
java.lang.String |
getText()
Returns the contents of the HTML Tag. |
java.lang.String |
getValue()
Returns the value of the HTML Tag VALUE attribute. |
protected void |
resetTagSpecificInformation()
Resets the tag attributes and content of the HTML Tag to their default values. |
void |
setSelected(boolean attribute)
Sets the HTML Tag SELECTED attribute. |
void |
setText(java.lang.String text)
Sets the contents of this tag. |
void |
setValue(java.lang.String attribute)
Sets the HTML Tag VALUE attribute. |
protected void |
writeTagSpecificAttributes()
Adds the tag specific attribute information to the HTML Tag. |
protected void |
writeTagSpecificData()
Adds the tag content to the HTML Tag. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OptionTag()
TagPropertyConstants.OPTION_TAG).
TagPropertyConstants.OPTION_TAG| Method Detail |
public boolean getSelected()
true if this HTML Tag has a SELECTED attribute;
false if this HTML Tag does not have a SELECTED attribute.
true if this HTML Tag has a SELECTED attribute;
false if this HTML Tag does not have a SELECTED attribute.public java.lang.String getText()
public java.lang.String getValue()
public void setSelected(boolean attribute)
HTMLTag.reconstructTag to true.
attribute - true if this HTML Tag should have a SELECTED attribute;
false if this HTML Tag should not have a SELECTED attribute.HTMLTag.reconstructTagpublic void setText(java.lang.String text)
HTMLTag.reconstructTag value to true.
text - the content for this tagHTMLTag.reconstructTagpublic void setValue(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag VALUE attributeHTMLTag.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()protected void writeTagSpecificData()
HTMLTagHTMLTag.toString().
This method is not implemented in HTMLTag.
Subclasses that contain tag content information should implement this method to writeout that content in between the opening and closing tags.
writeTagSpecificData in class HTMLTagHTMLTag.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||