|
|||||||||
| Home >> All >> gnu >> xml >> dom >> [ html2 overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
gnu.xml.dom.html2
Class DomHTMLInputElement

java.lang.Objectgnu.xml.dom.DomNode
gnu.xml.dom.DomNsNode
gnu.xml.dom.DomElement
gnu.xml.dom.html2.DomHTMLElement
gnu.xml.dom.html2.DomHTMLInputElement
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable, org.w3c.dom.events.DocumentEvent, org.w3c.dom.Element, org.w3c.dom.events.EventTarget, org.w3c.dom.html2.HTMLElement, org.w3c.dom.html2.HTMLInputElement, org.w3c.dom.Node, org.w3c.dom.NodeList
- public class DomHTMLInputElement
- extends DomHTMLElement
- implements org.w3c.dom.html2.HTMLInputElement
- extends DomHTMLElement
An HTML 'INPUT' element node.
| Nested Class Summary |
| Nested classes inherited from class gnu.xml.dom.DomNode |
|
| Field Summary | |
protected java.lang.Boolean |
checked
|
protected java.lang.String |
value
|
| Fields inherited from class gnu.xml.dom.DomElement |
|
| Fields inherited from class gnu.xml.dom.DomNsNode |
|
| Fields inherited from class gnu.xml.dom.DomNode |
|
| Constructor Summary | |
protected |
DomHTMLInputElement(DomHTMLDocument owner,
java.lang.String namespaceURI,
java.lang.String name)
|
| Method Summary | |
void |
blur()
Removes keyboard focus from this element. |
void |
click()
Simulate a mouse-click. |
void |
focus()
Gives keyboard focus to this element. |
java.lang.String |
getAccept()
A comma-separated list of content types that a server processing this form will handle correctly. |
java.lang.String |
getAccessKey()
A single character access key to give access to the form control. |
java.lang.String |
getAlign()
Aligns this object (vertically or horizontally) with respect to its surrounding text. |
java.lang.String |
getAlt()
Alternate text for user agents not rendering the normal content of this element. |
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. |
java.lang.String |
getDefaultValue()
When the type attribute of the element has the value
"text", "file" or "password", this represents the HTML value
attribute of the element. |
boolean |
getDisabled()
The control is unavailable in this context. |
org.w3c.dom.html2.HTMLFormElement |
getForm()
Returns the FORM element containing this control. |
int |
getMaxLength()
Maximum number of characters for text fields, when type
has the value "text" or "password". |
java.lang.String |
getName()
Form control or object name when submitted with a form. |
boolean |
getReadOnly()
This control is read-only. |
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. |
int |
getTabIndex()
Index that represents the element's position in the tabbing order. |
java.lang.String |
getType()
The type of control created (all lower case). |
java.lang.String |
getUseMap()
Use client-side image map. |
java.lang.String |
getValue()
When the type attribute of the element has the value
"text", "file" or "password", this represents the current contents of
the corresponding form control, in an interactive user agent. |
void |
select()
Select the contents of the text area. |
void |
setAccept(java.lang.String accept)
A comma-separated list of content types that a server processing this form will handle correctly. |
void |
setAccessKey(java.lang.String accessKey)
A single character access key to give access to the form control. |
void |
setAlign(java.lang.String align)
Aligns this object (vertically or horizontally) with respect to its surrounding text. |
void |
setAlt(java.lang.String alt)
Alternate text for user agents not rendering the normal content of this element. |
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 |
setDefaultValue(java.lang.String defaultValue)
When the type attribute of the element has the value
"text", "file" or "password", this represents the HTML value
attribute of the element. |
void |
setDisabled(boolean disabled)
The control is unavailable in this context. |
void |
setMaxLength(int maxLength)
Maximum number of characters for text fields, when type
has the value "text" or "password". |
void |
setName(java.lang.String name)
Form control or object name when submitted with a form. |
void |
setReadOnly(boolean readOnly)
This control is read-only. |
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 |
setTabIndex(int tabIndex)
Index that represents the element's position in the tabbing order. |
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. |
void |
setValue(java.lang.String value)
When the type attribute of the element has the value
"text", "file" or "password", this represents the current contents of
the corresponding form control, in an interactive user agent. |
| Methods inherited from class gnu.xml.dom.html2.DomHTMLElement |
dispatchUIEvent, getBooleanHTMLAttribute, getChildElement, getClassName, getDir, getHTMLAttribute, getId, getIndex, getIntHTMLAttribute, getLang, getParentElement, getTitle, setBooleanHTMLAttribute, setClassName, setDir, setHTMLAttribute, setId, setIntHTMLAttribute, setLang, setTitle |
| Methods inherited from class gnu.xml.dom.DomNsNode |
getLocalName, getNamespaceURI, getNodeName, getPrefix, setPrefix |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 |
| Field Detail |
value
protected java.lang.String value
checked
protected java.lang.Boolean checked
| Constructor Detail |
DomHTMLInputElement
protected DomHTMLInputElement(DomHTMLDocument owner, java.lang.String namespaceURI, java.lang.String name)
| Method Detail |
getDefaultValue
public java.lang.String getDefaultValue()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - When the
typeattribute of the element has the value "text", "file" or "password", this represents the HTML value attribute of the element. The value of this attribute does not change if the contents of the corresponding form control, in an interactive user agent, changes. See the value attribute definition in HTML 4.01.- Specified by:
getDefaultValuein interfaceorg.w3c.dom.html2.HTMLInputElement
setDefaultValue
public void setDefaultValue(java.lang.String defaultValue)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - When the
typeattribute of the element has the value "text", "file" or "password", this represents the HTML value attribute of the element. The value of this attribute does not change if the contents of the corresponding form control, in an interactive user agent, changes. See the value attribute definition in HTML 4.01.- Specified by:
setDefaultValuein interfaceorg.w3c.dom.html2.HTMLInputElement
getDefaultChecked
public boolean getDefaultChecked()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - When
typehas 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:
getDefaultCheckedin interfaceorg.w3c.dom.html2.HTMLInputElement
setDefaultChecked
public void setDefaultChecked(boolean defaultChecked)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - When
typehas 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:
setDefaultCheckedin interfaceorg.w3c.dom.html2.HTMLInputElement
getForm
public org.w3c.dom.html2.HTMLFormElement getForm()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Returns the
FORMelement containing this control. Returnsnullif this control is not within the context of a form.- Specified by:
getFormin interfaceorg.w3c.dom.html2.HTMLInputElement
getAccept
public java.lang.String getAccept()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - A comma-separated list of content types that a server processing this
form will handle correctly. See the accept attribute definition in
HTML 4.01.
- Specified by:
getAcceptin interfaceorg.w3c.dom.html2.HTMLInputElement
setAccept
public void setAccept(java.lang.String accept)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - A comma-separated list of content types that a server processing this
form will handle correctly. See the accept attribute definition in
HTML 4.01.
- Specified by:
setAcceptin interfaceorg.w3c.dom.html2.HTMLInputElement
getAccessKey
public java.lang.String getAccessKey()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - A single character access key to give access to the form control. See
the accesskey attribute definition in HTML 4.01.
- Specified by:
getAccessKeyin interfaceorg.w3c.dom.html2.HTMLInputElement
setAccessKey
public void setAccessKey(java.lang.String accessKey)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - A single character access key to give access to the form control. See
the accesskey attribute definition in HTML 4.01.
- Specified by:
setAccessKeyin interfaceorg.w3c.dom.html2.HTMLInputElement
getAlign
public java.lang.String getAlign()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Aligns this object (vertically or horizontally) with respect to its
surrounding text. See the align attribute definition in HTML 4.01.
This attribute is deprecated in HTML 4.01.
- Specified by:
getAlignin interfaceorg.w3c.dom.html2.HTMLInputElement
setAlign
public void setAlign(java.lang.String align)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Aligns this object (vertically or horizontally) with respect to its
surrounding text. See the align attribute definition in HTML 4.01.
This attribute is deprecated in HTML 4.01.
- Specified by:
setAlignin interfaceorg.w3c.dom.html2.HTMLInputElement
getAlt
public java.lang.String getAlt()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Alternate text for user agents not rendering the normal content of this
element. See the alt attribute definition in HTML 4.01.
- Specified by:
getAltin interfaceorg.w3c.dom.html2.HTMLInputElement
setAlt
public void setAlt(java.lang.String alt)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Alternate text for user agents not rendering the normal content of this
element. See the alt attribute definition in HTML 4.01.
- Specified by:
setAltin interfaceorg.w3c.dom.html2.HTMLInputElement
getChecked
public boolean getChecked()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - When the
typeattribute 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:
getCheckedin interfaceorg.w3c.dom.html2.HTMLInputElement
setChecked
public void setChecked(boolean checked)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - When the
typeattribute 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:
setCheckedin interfaceorg.w3c.dom.html2.HTMLInputElement
getDisabled
public boolean getDisabled()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - The control is unavailable in this context. See the disabled attribute
definition in HTML 4.01.
- Specified by:
getDisabledin interfaceorg.w3c.dom.html2.HTMLInputElement
setDisabled
public void setDisabled(boolean disabled)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - The control is unavailable in this context. See the disabled attribute
definition in HTML 4.01.
- Specified by:
setDisabledin interfaceorg.w3c.dom.html2.HTMLInputElement
getMaxLength
public int getMaxLength()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Maximum number of characters for text fields, when
typehas the value "text" or "password". See the maxlength attribute definition in HTML 4.01.- Specified by:
getMaxLengthin interfaceorg.w3c.dom.html2.HTMLInputElement
setMaxLength
public void setMaxLength(int maxLength)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Maximum number of characters for text fields, when
typehas the value "text" or "password". See the maxlength attribute definition in HTML 4.01.- Specified by:
setMaxLengthin interfaceorg.w3c.dom.html2.HTMLInputElement
getName
public java.lang.String getName()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Form control or object name when submitted with a form. See the name
attribute definition in HTML 4.01.
- Specified by:
getNamein interfaceorg.w3c.dom.html2.HTMLInputElement
setName
public void setName(java.lang.String name)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Form control or object name when submitted with a form. See the name
attribute definition in HTML 4.01.
- Specified by:
setNamein interfaceorg.w3c.dom.html2.HTMLInputElement
getReadOnly
public boolean getReadOnly()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - This control is read-only. Relevant only when
typehas the value "text" or "password". See the readonly attribute definition in HTML 4.01.- Specified by:
getReadOnlyin interfaceorg.w3c.dom.html2.HTMLInputElement
setReadOnly
public void setReadOnly(boolean readOnly)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - This control is read-only. Relevant only when
typehas the value "text" or "password". See the readonly attribute definition in HTML 4.01.- Specified by:
setReadOnlyin interfaceorg.w3c.dom.html2.HTMLInputElement
getSize
public int getSize()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Size information. The precise meaning is specific to each type of
field. See the size attribute definition in HTML 4.01.
- Specified by:
getSizein interfaceorg.w3c.dom.html2.HTMLInputElement
setSize
public void setSize(int size)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Size information. The precise meaning is specific to each type of
field. See the size attribute definition in HTML 4.01.
- Specified by:
setSizein interfaceorg.w3c.dom.html2.HTMLInputElement
getSrc
public java.lang.String getSrc()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - When the
typeattribute 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:
getSrcin interfaceorg.w3c.dom.html2.HTMLInputElement
setSrc
public void setSrc(java.lang.String src)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - When the
typeattribute 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:
setSrcin interfaceorg.w3c.dom.html2.HTMLInputElement
getTabIndex
public int getTabIndex()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Index that represents the element's position in the tabbing order. See
the tabindex attribute definition in HTML 4.01.
- Specified by:
getTabIndexin interfaceorg.w3c.dom.html2.HTMLInputElement
setTabIndex
public void setTabIndex(int tabIndex)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Index that represents the element's position in the tabbing order. See
the tabindex attribute definition in HTML 4.01.
- Specified by:
setTabIndexin interfaceorg.w3c.dom.html2.HTMLInputElement
getType
public java.lang.String getType()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - The type of control created (all lower case). See the type attribute
definition in HTML 4.01.
- Specified by:
getTypein interfaceorg.w3c.dom.html2.HTMLInputElement
setType
public void setType(java.lang.String type)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - The type of control created (all lower case). See the type attribute
definition in HTML 4.01.
- Specified by:
setTypein interfaceorg.w3c.dom.html2.HTMLInputElement
getUseMap
public java.lang.String getUseMap()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Use client-side image map. See the usemap attribute definition in HTML
4.01.
- Specified by:
getUseMapin interfaceorg.w3c.dom.html2.HTMLInputElement
setUseMap
public void setUseMap(java.lang.String useMap)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Use client-side image map. See the usemap attribute definition in HTML
4.01.
- Specified by:
setUseMapin interfaceorg.w3c.dom.html2.HTMLInputElement
getValue
public java.lang.String getValue()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - When the
typeattribute of the element has the value "text", "file" or "password", this represents the current contents of the corresponding form control, in an interactive user agent. Changing this attribute changes the contents of the form control, but does not change the value of the HTML value attribute of the element. When thetypeattribute of the element has the value "button", "hidden", "submit", "reset", "image", "checkbox" or "radio", this represents the HTML value attribute of the element. See the value attribute definition in HTML 4.01.- Specified by:
getValuein interfaceorg.w3c.dom.html2.HTMLInputElement
setValue
public void setValue(java.lang.String value)
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - When the
typeattribute of the element has the value "text", "file" or "password", this represents the current contents of the corresponding form control, in an interactive user agent. Changing this attribute changes the contents of the form control, but does not change the value of the HTML value attribute of the element. When thetypeattribute of the element has the value "button", "hidden", "submit", "reset", "image", "checkbox" or "radio", this represents the HTML value attribute of the element. See the value attribute definition in HTML 4.01.- Specified by:
setValuein interfaceorg.w3c.dom.html2.HTMLInputElement
blur
public void blur()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Removes keyboard focus from this element.
- Specified by:
blurin interfaceorg.w3c.dom.html2.HTMLInputElement
focus
public void focus()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Gives keyboard focus to this element.
- Specified by:
focusin interfaceorg.w3c.dom.html2.HTMLInputElement
select
public void select()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Select the contents of the text area. For
INPUTelements whosetypeattribute has one of the following values: "text", "file", or "password".- Specified by:
selectin interfaceorg.w3c.dom.html2.HTMLInputElement
click
public void click()
- Description copied from interface:
org.w3c.dom.html2.HTMLInputElement - Simulate a mouse-click. For
INPUTelements whosetypeattribute has one of the following values: "button", "checkbox", "radio", "reset", or "submit".- Specified by:
clickin interfaceorg.w3c.dom.html2.HTMLInputElement
|
|||||||||
| Home >> All >> gnu >> xml >> dom >> [ html2 overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC