public class HTMLInputElementImpl extends HTMLBaseInputElement implements HTMLInputElement
deferredValue, inputContextattributesdocument, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNodeATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
HTMLInputElementImpl(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
click()
Simulate a mouse-click.
|
boolean |
getChecked()
When the
type attribute of the element has the value
"radio" or "checkbox", this represents the current state of the form
control, in an interactive user agent. |
boolean |
getDefaultChecked()
When
type has the value "radio" or "checkbox", this
represents the HTML checked attribute of the element. |
protected FormInput[] |
getFormInputs()
Gets form input due to the current element.
|
int |
getMaxLength()
Maximum number of characters for text fields, when
type
has the value "text" or "password". |
int |
getSize()
Size information.
|
java.lang.String |
getSrc()
When the
type attribute has the value "image", this
attribute specifies the location of the image to be used to decorate
the graphical submit button. |
java.lang.String |
getType()
Gets input type in lowercase.
|
java.lang.String |
getUseMap()
Use client-side image map.
|
boolean |
isImageInput() |
boolean |
isResetInput() |
boolean |
isSubmitInput() |
boolean |
isSubmittableWithEnterKey() |
boolean |
isSubmittableWithPress() |
void |
setChecked(boolean checked)
When the
type attribute of the element has the value
"radio" or "checkbox", this represents the current state of the form
control, in an interactive user agent. |
void |
setDefaultChecked(boolean defaultChecked)
When
type has the value "radio" or "checkbox", this
represents the HTML checked attribute of the element. |
void |
setMaxLength(int maxLength)
Maximum number of characters for text fields, when
type
has the value "text" or "password". |
void |
setSize(int size)
Size information.
|
void |
setSrc(java.lang.String src)
When the
type attribute has the value "image", this
attribute specifies the location of the image to be used to decorate
the graphical submit button. |
void |
setType(java.lang.String type)
The type of control created (all lower case).
|
void |
setUseMap(java.lang.String useMap)
Use client-side image map.
|
addImageListener, assignAttributeField, blur, focus, getAccept, getAccessKey, getAlign, getAlt, getDefaultValue, getDisabled, getFileValue, getForm, getImage, getName, getOnload, getReadOnly, getTabIndex, getValue, removeImageListener, resetForm, select, setAccept, setAccessKey, setAlign, setAlt, setDefaultValue, setDisabled, setInputContext, setName, setOnload, setReadOnly, setTabIndex, setValue, submitFormgetEventFunction, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseupaddStyleSheetDeclarations, appendOuterHTMLImpl, createDefaultStyleSheet, createRenderState, findStyleDeclarations, forgetLocalStyle, forgetStyle, getAncestor, getAncestorForJavaClass, getAncestorWithClass, getAncestorWithId, getAttributeAsBoolean, getAttributeAsInt, getCharset, getClassName, getComputedStyle, getCssInputSourceForDecl, getCurrentStyle, getDocumentBaseURI, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOuterHTML, getParent, getParentStyle, getParentWithClass, getParentWithId, getPreceedingSibling, getPreceedingSiblingElement, getPreceedingSiblingWithClass, getPreceedingSiblingWithId, getPseudoNames, getStyle, informInvalid, informInvalidAttibute, setCharset, setClassName, setCurrentStyle, setInnerHTML, setMouseOver, setStyle, toString, warn, warncreateSimilarNode, equalAttributes, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDir, getElementsByTagName, getElementsByTagNameNS, getId, getLang, getLocalName, getNodeName, getNodeType, getNodeValue, getRawInnerText, getSchemaTypeInfo, getTagName, getTitle, hasAttribute, hasAttributeNS, hasAttributes, htmlEncodeChildText, isTagName, normalizeAttributeName, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeImpl, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDir, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerText, setLang, setNodeValue, setTitleappendChild, appendInnerHTMLImpl, appendInnerTextImpl, cloneNode, compareDocumentPosition, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getBaseURI, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getDocumentURL, getFeature, getFirstChild, getFullURL, getHtmlRendererContext, getInnerHTML, getInnerText, getLastChild, getNamespaceURI, getNextSibling, getNodeList, getOwnerDocument, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousSibling, getRenderState, getTextContent, getUINode, getUserAgentContext, getUserData, hasChildNodes, informDocumentInvalid, informExternalScriptLoading, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, informStructureInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAllChildren, removeAllChildrenImpl, removeChild, removeChildAt, removeChildren, removeChildrenImpl, replaceAdjacentTextNodes, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setPrefix, setTextContent, setUINode, setUserDatagetScriptable, setScriptableclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitblur, focus, getAccept, getAccessKey, getAlign, getAlt, getDefaultValue, getDisabled, getForm, getName, getReadOnly, getTabIndex, getValue, select, setAccept, setAccessKey, setAlign, setAlt, setDefaultValue, setDisabled, setName, setReadOnly, setTabIndex, setValuegetClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitlegetAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatainformLayoutInvalid, informLookInvalid, informPositionInvalid, informSizeInvalidpublic boolean getDefaultChecked()
HTMLInputElementtype has the value "radio" or "checkbox", this
represents the HTML checked attribute of the element. The value of
this attribute does not change if the state of the corresponding form
control, in an interactive user agent, changes. See the checked
attribute definition in HTML 4.01.getDefaultChecked in interface HTMLInputElementpublic void setDefaultChecked(boolean defaultChecked)
HTMLInputElementtype has the value "radio" or "checkbox", this
represents the HTML checked attribute of the element. The value of
this attribute does not change if the state of the corresponding form
control, in an interactive user agent, changes. See the checked
attribute definition in HTML 4.01.setDefaultChecked in interface HTMLInputElementpublic boolean getChecked()
HTMLInputElementtype attribute of the element has the value
"radio" or "checkbox", this represents the current state of the form
control, in an interactive user agent. Changes to this attribute
change the state of the form control, but do not change the value of
the HTML checked attribute of the INPUT element.During the handling
of a click event on an input element with a type attribute that has
the value "radio" or "checkbox", some implementations may change the
value of this property before the event is being dispatched in the
document. If the default action of the event is canceled, the value
of the property may be changed back to its original value. This means
that the value of this property during the handling of click events
is implementation dependent.getChecked in interface HTMLInputElementpublic void setChecked(boolean checked)
HTMLInputElementtype attribute of the element has the value
"radio" or "checkbox", this represents the current state of the form
control, in an interactive user agent. Changes to this attribute
change the state of the form control, but do not change the value of
the HTML checked attribute of the INPUT element.During the handling
of a click event on an input element with a type attribute that has
the value "radio" or "checkbox", some implementations may change the
value of this property before the event is being dispatched in the
document. If the default action of the event is canceled, the value
of the property may be changed back to its original value. This means
that the value of this property during the handling of click events
is implementation dependent.setChecked in interface HTMLInputElementpublic int getMaxLength()
HTMLInputElementtype
has the value "text" or "password". See the maxlength attribute
definition in HTML 4.01.getMaxLength in interface HTMLInputElementpublic void setMaxLength(int maxLength)
HTMLInputElementtype
has the value "text" or "password". See the maxlength attribute
definition in HTML 4.01.setMaxLength in interface HTMLInputElementpublic int getSize()
HTMLInputElementgetSize in interface HTMLInputElementpublic void setSize(int size)
HTMLInputElementsetSize in interface HTMLInputElementpublic java.lang.String getSrc()
HTMLInputElementtype attribute has the value "image", this
attribute specifies the location of the image to be used to decorate
the graphical submit button. See the src attribute definition in HTML
4.01.getSrc in interface HTMLInputElementpublic void setSrc(java.lang.String src)
HTMLInputElementtype attribute has the value "image", this
attribute specifies the location of the image to be used to decorate
the graphical submit button. See the src attribute definition in HTML
4.01.setSrc in interface HTMLInputElementpublic java.lang.String getType()
getType in interface HTMLInputElementpublic void setType(java.lang.String type)
HTMLInputElementsetType in interface HTMLInputElementpublic java.lang.String getUseMap()
HTMLInputElementgetUseMap in interface HTMLInputElementpublic void setUseMap(java.lang.String useMap)
HTMLInputElementsetUseMap in interface HTMLInputElementpublic void click()
HTMLInputElementINPUT elements whose
type attribute has one of the following values:
"button", "checkbox", "radio", "reset", or "submit".click in interface HTMLInputElementpublic boolean isSubmittableWithEnterKey()
public boolean isSubmittableWithPress()
public boolean isSubmitInput()
public boolean isImageInput()
public boolean isResetInput()
protected FormInput[] getFormInputs()
HTMLElementImplnull except when the element is a form input element.getFormInputs in class HTMLElementImpl