org.lobobrowser.html.domimpl

Class HTMLInputElementImpl

Implemented Interfaces:
Element, CSS2PropertiesContext, HTMLElement, HTMLInputElement, Node, ModelNode, ScriptableDelegate

public class HTMLInputElementImpl
extends HTMLBaseInputElement
implements HTMLInputElement

Field Summary

Fields inherited from class org.lobobrowser.html.domimpl.HTMLBaseInputElement

inputContext

Fields inherited from class org.lobobrowser.html.domimpl.ElementImpl

attributes

Fields inherited from class org.lobobrowser.html.domimpl.NodeImpl

document, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNode

Constructor Summary

HTMLInputElementImpl(String name)

Method Summary

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()
int
getMaxLength()
Maximum number of characters for text fields, when type has the value "text" or "password".
int
getSize()
Size information.
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.
String
getType()
Gets input type in lowercase.
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(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(String type)
The type of control created (all lower case).
void
setUseMap(String useMap)
Use client-side image map.

Methods inherited from class org.lobobrowser.html.domimpl.HTMLBaseInputElement

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

Methods inherited from class org.lobobrowser.html.domimpl.HTMLAbstractUIElement

assignAttributeField, blur, focus, 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

Methods inherited from class org.lobobrowser.html.domimpl.HTMLElementImpl

addStyleSheetDeclarations, appendInnerHTMLImpl, appendOuterHTMLImpl, assignAttributeField, createRenderState, findStyleDeclarations, forgetLocalStyle, forgetStyle, getAncestor, getAncestorForJavaClass, getAncestorWithClass, getAncestorWithId, getAttributeAsBoolean, getAttributeAsInt, getCharset, getClassName, getCssInputSourceForDecl, getCurrentStyle, getFormInputs, getInnerHTML, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOuterHTML, getParentStyle, getStyle, informInvalid, informInvalidAttibute, informLayoutInvalid, setCharset, setClassName, setCurrentStyle, setInnerHTML, setMouseOver, setStyle, toString, warn, warn

Methods inherited from class org.lobobrowser.html.domimpl.ElementImpl

appendInnerTextImpl, assignAttributeField, createSimilarNode, equalAttributes, getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getAttributes, getDir, getElementsByTagName, getElementsByTagNameNS, getId, getInnerText, getLang, getLocalName, getNodeName, getNodeType, getNodeValue, getRawInnerText, getSchemaTypeInfo, getTagName, getTitle, hasAttribute, hasAttributeNS, hasAttributes, isTagName, normalizeAttributeName, removeAttribute, removeAttributeNS, removeAttributeNode, setAttribute, setAttributeImpl, setAttributeNS, setAttributeNode, setAttributeNodeNS, setDir, setId, setIdAttribute, setIdAttributeNS, setIdAttributeNode, setInnerText, setLang, setNodeValue, setTitle, toString

Methods inherited from class org.lobobrowser.html.domimpl.NodeImpl

appendChild, cloneNode, compareDocumentPosition, createRenderState, createSimilarNode, equalAttributes, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getAttributes, getBaseURI, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getDocumentURL, getFeature, getFirstChild, getFullURL, getHtmlRendererContext, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeList, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousSibling, getRenderState, getTextContent, getUINode, getUserAgentContext, getUserData, hasAttributes, hasChildNodes, informExternalScriptLoading, informInvalid, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAllChildren, removeAllChildrenImpl, removeChild, removeChildAt, removeChildren, removeChildrenImpl, replaceAdjacentTextNodes, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setNodeValue, setPrefix, setTextContent, setUINode, setUserData, toString, warn, warn

Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate

getScriptable, setScriptable

Constructor Details

HTMLInputElementImpl

public HTMLInputElementImpl(String name)

Method Details

click

public void click()
Simulate a mouse-click. For INPUT elements whose type attribute has one of the following values: "button", "checkbox", "radio", "reset", or "submit".
Specified by:
click in interface HTMLInputElement

getChecked

public 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. 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.
Specified by:
getChecked in interface HTMLInputElement

getDefaultChecked

public boolean getDefaultChecked()
When 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.
Specified by:
getDefaultChecked in interface HTMLInputElement

getFormInputs

protected FormInput[] getFormInputs()
Overrides:
getFormInputs in interface HTMLElementImpl

getMaxLength

public int getMaxLength()
Maximum number of characters for text fields, when type has the value "text" or "password". See the maxlength attribute definition in HTML 4.01.
Specified by:
getMaxLength in interface HTMLInputElement

getSize

public int getSize()
Size information. The precise meaning is specific to each type of field. See the size attribute definition in HTML 4.01.
Specified by:
getSize in interface HTMLInputElement
Version:
DOM Level 2

getSrc

public 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. See the src attribute definition in HTML 4.01.
Specified by:
getSrc in interface HTMLInputElement

getType

public String getType()
Gets input type in lowercase.
Specified by:
getType in interface HTMLInputElement

getUseMap

public String getUseMap()
Use client-side image map. See the usemap attribute definition in HTML 4.01.
Specified by:
getUseMap in interface HTMLInputElement

isImageInput

public boolean isImageInput()

isResetInput

public boolean isResetInput()

isSubmitInput

public boolean isSubmitInput()

isSubmittableWithEnterKey

public boolean isSubmittableWithEnterKey()

isSubmittableWithPress

public boolean isSubmittableWithPress()

setChecked

public 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. 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.
Specified by:
setChecked in interface HTMLInputElement

setDefaultChecked

public void setDefaultChecked(boolean defaultChecked)
When 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.
Specified by:
setDefaultChecked in interface HTMLInputElement

setMaxLength

public void setMaxLength(int maxLength)
Maximum number of characters for text fields, when type has the value "text" or "password". See the maxlength attribute definition in HTML 4.01.
Specified by:
setMaxLength in interface HTMLInputElement

setSize

public void setSize(int size)
Size information. The precise meaning is specific to each type of field. See the size attribute definition in HTML 4.01.
Specified by:
setSize in interface HTMLInputElement
Version:
DOM Level 2

setSrc

public void setSrc(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. See the src attribute definition in HTML 4.01.
Specified by:
setSrc in interface HTMLInputElement

setType

public void setType(String type)
The type of control created (all lower case). See the type attribute definition in HTML 4.01.
Specified by:
setType in interface HTMLInputElement
Version:
DOM Level 2

setUseMap

public void setUseMap(String useMap)
Use client-side image map. See the usemap attribute definition in HTML 4.01.
Specified by:
setUseMap in interface HTMLInputElement