Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.xml.dom.html2
Class DomHTMLInputElement  view DomHTMLInputElement download DomHTMLInputElement.java

java.lang.Object
  extended bygnu.xml.dom.DomNode
      extended bygnu.xml.dom.DomNsNode
          extended bygnu.xml.dom.DomElement
              extended bygnu.xml.dom.html2.DomHTMLElement
                  extended bygnu.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

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
 
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
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.DomElement
clone, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, hasAttributes, isDefaultNamespace, isEqualNode, lookupNamespaceURI, lookupPrefix, makeReadonly, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from class gnu.xml.dom.DomNsNode
getLocalName, getNamespaceURI, getNodeName, getPrefix, setPrefix
 
Methods inherited from class gnu.xml.dom.DomNode
addEventListener, appendChild, cloneNode, compact, compareDocumentPosition, compareTo, createEvent, dispatchEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFeature, getFirstChild, getLastChild, getLength, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isReadonly, isSameNode, isSupported, item, list, nameAndTypeEquals, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setTextContent, setUserData, toString, trimToSize
 
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 type attribute 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:
getDefaultValue in interface org.w3c.dom.html2.HTMLInputElement

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)
Description copied from interface: org.w3c.dom.html2.HTMLInputElement
When the type attribute 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:
setDefaultValue in interface org.w3c.dom.html2.HTMLInputElement

getDefaultChecked

public boolean getDefaultChecked()
Description copied from interface: org.w3c.dom.html2.HTMLInputElement
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 org.w3c.dom.html2.HTMLInputElement

setDefaultChecked

public void setDefaultChecked(boolean defaultChecked)
Description copied from interface: org.w3c.dom.html2.HTMLInputElement
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 org.w3c.dom.html2.HTMLInputElement

getForm

public org.w3c.dom.html2.HTMLFormElement getForm()
Description copied from interface: org.w3c.dom.html2.HTMLInputElement
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

Specified by:
getForm in interface org.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:
getAccept in interface org.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:
setAccept in interface org.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:
getAccessKey in interface org.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:
setAccessKey in interface org.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:
getAlign in interface org.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:
setAlign in interface org.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:
getAlt in interface org.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:
setAlt in interface org.w3c.dom.html2.HTMLInputElement

getChecked

public boolean getChecked()
Description copied from interface: org.w3c.dom.html2.HTMLInputElement
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 org.w3c.dom.html2.HTMLInputElement

setChecked

public void setChecked(boolean checked)
Description copied from interface: org.w3c.dom.html2.HTMLInputElement
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 org.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:
getDisabled in interface org.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:
setDisabled in interface org.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 type has the value "text" or "password". See the maxlength attribute definition in HTML 4.01.

Specified by:
getMaxLength in interface org.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 type has the value "text" or "password". See the maxlength attribute definition in HTML 4.01.

Specified by:
setMaxLength in interface org.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:
getName in interface org.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:
setName in interface org.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 type has the value "text" or "password". See the readonly attribute definition in HTML 4.01.

Specified by:
getReadOnly in interface org.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 type has the value "text" or "password". See the readonly attribute definition in HTML 4.01.

Specified by:
setReadOnly in interface org.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:
getSize in interface org.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:
setSize in interface org.w3c.dom.html2.HTMLInputElement

getSrc

public java.lang.String getSrc()
Description copied from interface: org.w3c.dom.html2.HTMLInputElement
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 org.w3c.dom.html2.HTMLInputElement

setSrc

public void setSrc(java.lang.String src)
Description copied from interface: org.w3c.dom.html2.HTMLInputElement
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 org.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:
getTabIndex in interface org.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:
setTabIndex in interface org.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:
getType in interface org.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:
setType in interface org.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:
getUseMap in interface org.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:
setUseMap in interface org.w3c.dom.html2.HTMLInputElement

getValue

public java.lang.String getValue()
Description copied from interface: org.w3c.dom.html2.HTMLInputElement
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. 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 the type attribute 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:
getValue in interface org.w3c.dom.html2.HTMLInputElement

setValue

public void setValue(java.lang.String value)
Description copied from interface: org.w3c.dom.html2.HTMLInputElement
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. 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 the type attribute 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:
setValue in interface org.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:
blur in interface org.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:
focus in interface org.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 INPUT elements whose type attribute has one of the following values: "text", "file", or "password".

Specified by:
select in interface org.w3c.dom.html2.HTMLInputElement

click

public void click()
Description copied from interface: org.w3c.dom.html2.HTMLInputElement
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 org.w3c.dom.html2.HTMLInputElement