|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lobobrowser.js.AbstractScriptableDelegate
org.lobobrowser.html.domimpl.NodeImpl
org.lobobrowser.html.domimpl.ElementImpl
org.lobobrowser.html.domimpl.HTMLElementImpl
org.lobobrowser.html.domimpl.HTMLAbstractUIElement
org.lobobrowser.html.domimpl.HTMLBaseInputElement
org.lobobrowser.html.domimpl.HTMLInputElementImpl
public class HTMLInputElementImpl
| Field Summary |
|---|
| Fields inherited from class org.lobobrowser.html.domimpl.HTMLBaseInputElement |
|---|
deferredValue, 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 |
| Fields inherited from interface org.w3c.dom.Node |
|---|
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 Summary | |
|---|---|
HTMLInputElementImpl(java.lang.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()
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. |
| 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 |
|---|
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.js.AbstractScriptableDelegate |
|---|
getScriptable, setScriptable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.html2.HTMLInputElement |
|---|
blur, focus, getAccept, getAccessKey, getAlign, getAlt, getDefaultValue, getDisabled, getForm, getName, getReadOnly, getTabIndex, getValue, select, setAccept, setAccessKey, setAlign, setAlt, setDefaultValue, setDisabled, setName, setReadOnly, setTabIndex, setValue |
| Methods inherited from interface org.w3c.dom.html2.HTMLElement |
|---|
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle |
| Methods inherited from interface org.w3c.dom.Element |
|---|
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
|---|
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 |
| Methods inherited from interface org.lobobrowser.html.style.CSS2PropertiesContext |
|---|
informLayoutInvalid, informLookInvalid, informPositionInvalid, informSizeInvalid |
| Constructor Detail |
|---|
public HTMLInputElementImpl(java.lang.String name)
| Method Detail |
|---|
public 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()
HTMLInputElement
getSize in interface HTMLInputElementpublic void setSize(int size)
HTMLInputElement
setSize 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)
HTMLInputElement
setType in interface HTMLInputElementpublic java.lang.String getUseMap()
HTMLInputElement
getUseMap in interface HTMLInputElementpublic void setUseMap(java.lang.String useMap)
HTMLInputElement
setUseMap 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||