API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom.html. HTMLInputElement View Source
Author(s)
Since
Version
Serial
Hierarchy
 Node
      Element
          HTMLElement
              HTMLInputElement
Subinterfaces
Description
public interface HTMLInputElement
  Form control.
See also:   
Methods
Hide/Show inherited methods
public void blur ()
Removes keyboard focus from this element.
public void click ()
  Simulate a mouse-click.
public void focus ()
Gives keyboard focus to this element.
public String getAccept ()
  A comma-separated list of content types that a server processing this form will handle correctly.
public String getAccessKey ()
  A single character access key to give access to the form control.
public String getAlign ()
  Aligns this object (vertically or horizontally) with respect to its surrounding text.
public String getAlt ()
  Alternate text for user agents not rendering the normal content of this element.
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.
public boolean getDefaultChecked ()
  When type has the value "Radio" or "Checkbox", this represents the HTML checked attribute of the element.
public 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.
public boolean getDisabled ()
  The control is unavailable in this context.
public HTMLFormElement getForm ()
  Returns the FORM element containing this control.
public int getMaxLength ()
  Maximum number of characters for text fields, when type has the value "Text" or "Password".
public String getName ()
  Form control or object name when submitted with a form.
public boolean getReadOnly ()
  This control is read-only.
public String getSize ()
  Size information.
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.
public int getTabIndex ()
  Index that represents the element's position in the tabbing order.
public String getType ()
  The type of control created.
public String getUseMap ()
  Use client-side image map.
public 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.
public void select ()
  Select the contents of the text area.
public void setAccept (String accept)
public void setAccessKey (String accessKey)
public void setAlign (String align)
public void setAlt (String alt)
public void setChecked (boolean checked)
public void setDefaultChecked (boolean defaultChecked)
public void setDefaultValue (String defaultValue)
public void setDisabled (boolean disabled)
public void setMaxLength (int maxLength)
public void setName (String name)
public void setReadOnly (boolean readOnly)
public void setSize (String size)
public void setSrc (String src)
public void setTabIndex (int tabIndex)
public void setUseMap (String useMap)
public void setValue (String value)
Fields
Hide/Show inherited fields
publicfinalstatic short ATTRIBUTE_NODE = "2" [Inherited From HTMLElement]
The node is an Attr.
publicfinalstatic short CDATA_SECTION_NODE = "4" [Inherited From HTMLElement]
The node is a CDATASection.
publicfinalstatic short COMMENT_NODE = "8" [Inherited From HTMLElement]
The node is a Comment.
publicfinalstatic short DOCUMENT_FRAGMENT_NODE = "11" [Inherited From HTMLElement]
The node is a DocumentFragment.
publicfinalstatic short DOCUMENT_NODE = "9" [Inherited From HTMLElement]
The node is a Document.
publicfinalstatic short DOCUMENT_POSITION_CONTAINED_BY = "16" [Inherited From HTMLElement]
  The node is contained by the reference node.
publicfinalstatic short DOCUMENT_POSITION_CONTAINS = "8" [Inherited From HTMLElement]
  The node contains the reference node.
publicfinalstatic short DOCUMENT_POSITION_DISCONNECTED = "1" [Inherited From HTMLElement]
  The two nodes are disconnected.
publicfinalstatic short DOCUMENT_POSITION_FOLLOWING = "4" [Inherited From HTMLElement]
The node follows the reference node.
publicfinalstatic short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = "32" [Inherited From HTMLElement]
The determination of preceding versus following is implementation-specific.
publicfinalstatic short DOCUMENT_POSITION_PRECEDING = "2" [Inherited From HTMLElement]
The second node precedes the reference node.
publicfinalstatic short DOCUMENT_TYPE_NODE = "10" [Inherited From HTMLElement]
The node is a DocumentType.
publicfinalstatic short ELEMENT_NODE = "1" [Inherited From HTMLElement]
The node is an Element.
publicfinalstatic short ENTITY_NODE = "6" [Inherited From HTMLElement]
The node is an Entity.
publicfinalstatic short ENTITY_REFERENCE_NODE = "5" [Inherited From HTMLElement]
The node is an EntityReference.
publicfinalstatic short NOTATION_NODE = "12" [Inherited From HTMLElement]
The node is a Notation.
publicfinalstatic short PROCESSING_INSTRUCTION_NODE = "7" [Inherited From HTMLElement]
The node is a ProcessingInstruction.
publicfinalstatic short TEXT_NODE = "3" [Inherited From HTMLElement]
The node is a Text node.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar