org.lobobrowser.html.domimpl
public class HTMLInputElementImpl extends HTMLBaseInputElement implements HTMLInputElement
deferredValue, inputContext
attributes
document, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNode
ATTRIBUTE_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, submitForm
getEventFunction, 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, setOnmouseup
addStyleSheetDeclarations, 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, warn
createSimilarNode, 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, setTitle
appendChild, 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, setUserData
getScriptable, setScriptable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
blur, focus, getAccept, getAccessKey, getAlign, getAlt, getDefaultValue, getDisabled, getForm, getName, getReadOnly, getTabIndex, getValue, select, setAccept, setAccessKey, setAlign, setAlt, setDefaultValue, setDisabled, setName, setReadOnly, setTabIndex, setValue
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
appendChild, 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, setUserData
informLayoutInvalid, informLookInvalid, informPositionInvalid, informSizeInvalid
public boolean getDefaultChecked()
HTMLInputElement
type
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 HTMLInputElement
public void setDefaultChecked(boolean defaultChecked)
HTMLInputElement
type
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 HTMLInputElement
public boolean getChecked()
HTMLInputElement
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. 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 HTMLInputElement
public void setChecked(boolean checked)
HTMLInputElement
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. 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 HTMLInputElement
public int getMaxLength()
HTMLInputElement
type
has the value "text" or "password". See the maxlength attribute
definition in HTML 4.01.getMaxLength
in interface HTMLInputElement
public void setMaxLength(int maxLength)
HTMLInputElement
type
has the value "text" or "password". See the maxlength attribute
definition in HTML 4.01.setMaxLength
in interface HTMLInputElement
public int getSize()
HTMLInputElement
getSize
in interface HTMLInputElement
public void setSize(int size)
HTMLInputElement
setSize
in interface HTMLInputElement
public java.lang.String getSrc()
HTMLInputElement
type
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 HTMLInputElement
public void setSrc(java.lang.String src)
HTMLInputElement
type
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 HTMLInputElement
public java.lang.String getType()
getType
in interface HTMLInputElement
public void setType(java.lang.String type)
HTMLInputElement
setType
in interface HTMLInputElement
public java.lang.String getUseMap()
HTMLInputElement
getUseMap
in interface HTMLInputElement
public void setUseMap(java.lang.String useMap)
HTMLInputElement
setUseMap
in interface HTMLInputElement
public void click()
HTMLInputElement
INPUT
elements whose
type
attribute has one of the following values:
"button", "checkbox", "radio", "reset", or "submit".click
in interface HTMLInputElement
public boolean isSubmittableWithEnterKey()
public boolean isSubmittableWithPress()
public boolean isSubmitInput()
public boolean isImageInput()
public boolean isResetInput()
protected FormInput[] getFormInputs()
HTMLElementImpl
null
except when the element is a form input element.getFormInputs
in class HTMLElementImpl