|
||||||||||
| 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.InputTag
Encapsulates all the attributes of an HTML "INPUT" 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 | |
InputTag()
Default constructor. |
|
| Method Summary | |
java.lang.String |
getAlign()
Returns the value of the HTML Tag ALIGN attribute. |
boolean |
getChecked()
Returns the value of the HTML Tag CHECKED attribute. |
boolean |
getDisabled()
Returns the value of the HTML Tag DISABLED attribute. |
int |
getMaxlength()
Returns the value of the HTML Tag MAXLENGTH attribute. |
java.lang.String |
getName()
Returns the value of the HTML Tag NAME attribute. |
java.lang.String |
getOnChange()
Returns the value of the HTML Tag ONCHANGE behavior. |
double |
getSize()
Returns the value of the HTML Tag SIZE attribute. |
java.lang.String |
getSrc()
Returns the value of the HTML Tag SRC attribute. |
java.lang.String |
getText()
Returns the contents of the tag. |
java.lang.String |
getType()
Returns the value of the HTML Tag TYPE attribute. |
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 |
setAlign(java.lang.String attribute)
Sets the align attribute and validates its value. |
void |
setChecked(boolean attribute)
Sets the HTML Tag CHECKED attribute. |
void |
setDisabled(boolean attribute)
Sets the HTML Tag DISABLED attribute. |
void |
setMaxlength(int attribute)
Sets the HTML Tag MAXLENGTH attribute. |
void |
setName(java.lang.String attribute)
Sets the HTML Tag NAME attribute. |
void |
setOnChange(java.lang.String attribute)
Sets the HTML Tag ONCHANGE behavior. |
void |
setSize(double attribute)
Sets the HTML Tag SIZE attribute. |
void |
setSrc(java.lang.String attribute)
Sets the HTML Tag SRC attribute. |
void |
setText(java.lang.String text)
Sets the contents of this tag. |
void |
setType(java.lang.String attribute)
Sets the TYPE attribute and validates its value. |
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 InputTag()
TagPropertyConstants.INPUT_TAG).
TagPropertyConstants.INPUT_TAG| Method Detail |
public java.lang.String getAlign()
public boolean getChecked()
true if the tag is checked;
false if the tag is not checkedpublic boolean getDisabled()
true if the tag is disabled;
false if the tag is enabledpublic int getMaxlength()
public java.lang.String getName()
public java.lang.String getOnChange()
public double getSize()
public java.lang.String getSrc()
public java.lang.String getText()
public java.lang.String getType()
public java.lang.String getValue()
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 setChecked(boolean attribute)
HTMLTag.reconstructTag to true.
attribute - true if this HTML Tag should be checked;
false if this HTML Tag should not be checked.HTMLTag.reconstructTagpublic void setDisabled(boolean attribute)
HTMLTag.reconstructTag to true.
attribute - true if this HTML Tag should be disabled;
false if this HTML Tag should be enabled.HTMLTag.reconstructTagpublic void setMaxlength(int attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag MAXLENGTH attributeHTMLTag.reconstructTagpublic void setName(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag NAME attributeHTMLTag.reconstructTagpublic void setOnChange(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag ONCHANGE behaviorHTMLTag.reconstructTagpublic void setSize(double attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag SIZE attributeHTMLTag.reconstructTagpublic void setSrc(java.lang.String attribute)
HTMLTag.reconstructTag to true.
attribute - the new value for the HTML Tag SRC attributeHTMLTag.reconstructTagpublic void setText(java.lang.String text)
HTMLTag.reconstructTag value to true.
text - the content for this tagHTMLTag.reconstructTagpublic void setType(java.lang.String attribute)
TagPropertyConstants.INPUT_TYPE_TEXT.
Sets the HTMLTag.reconstructTag value to true.
attribute - the new TYPE valueTagPropertyConstants.isInputTagType(java.lang.String),
HTMLTag.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 | |||||||||