All Packages Class Hierarchy This Package Previous Next Index
Interface org.w3c.dom.html.HTMLInputElement
- public interface HTMLInputElement
- extends HTMLElement
Form control. Note. Depending upon the environment
the page is being viewed, the value property may be read-only for the
file upload input type. For the "password" input type, the actual value
returned may be masked to prevent unauthorized use. See the INPUT element definition in HTML 4.0.
-
blur()
-
Removes keyboard focus from this element.
-
click()
-
Simulate a mouse-click.
-
focus()
-
Gives keyboard focus to this element.
-
getAccept()
- A comma-separated list of content types that a server processing this
form will handle correctly.
-
getAccessKey()
- A single character access key to give access to the form control.
-
getAlign()
- Aligns this object (vertically or horizontally)
with respect to its surrounding text.
-
getAlt()
- Alternate text for user agents not rendering the normal content
of this element.
-
getChecked()
- Describes whether a radio or check box is checked, when
type has the value "Radio" or "Checkbox".
-
getDefaultChecked()
- When type has the value "Radio" or "Checkbox",
stores the initial value of the checked attribute.
-
getDefaultValue()
- Stores the initial control value (i.e., the initial value of
value).
-
getDisabled()
- The control is unavailable in this context.
-
getForm()
- Returns the FORM element containing this control.
-
getMaxLength()
- Maximum number of characters for text fields, when type
has the value "Text" or "Password".
-
getName()
- Form control or object name when submitted with a form.
-
getReadOnly()
- This control is read-only.
-
getSize()
- Size information.
-
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.
-
getTabIndex()
- Index that represents the element's position in the tabbing order.
-
getType()
- The type of control created.
-
getUseMap()
- Use client-side image map.
-
getValue()
- The current form control value.
-
select()
-
Select the contents of the text area.
-
setAccept(String)
-
-
setAccessKey(String)
-
-
setAlign(String)
-
-
setAlt(String)
-
-
setChecked(boolean)
-
-
setDefaultChecked(boolean)
-
-
setDefaultValue(String)
-
-
setDisabled(boolean)
-
-
setMaxLength(int)
-
-
setName(String)
-
-
setReadOnly(boolean)
-
-
setSize(String)
-
-
setSrc(String)
-
-
setTabIndex(int)
-
-
setUseMap(String)
-
-
setValue(String)
-
getDefaultValue
public abstract String getDefaultValue()
- Stores the initial control value (i.e., the initial value of
value).
setDefaultValue
public abstract void setDefaultValue(String defaultValue)
getDefaultChecked
public abstract boolean getDefaultChecked()
- When type has the value "Radio" or "Checkbox",
stores the initial value of the checked attribute.
setDefaultChecked
public abstract void setDefaultChecked(boolean defaultChecked)
getForm
public abstract HTMLFormElement getForm()
- Returns the FORM element containing this control.
Returns null if this control is not within the context of a form.
getAccept
public abstract String getAccept()
- A comma-separated list of content types that a server processing this
form will handle correctly. See the accept attribute definition in HTML 4.0.
setAccept
public abstract void setAccept(String accept)
getAccessKey
public abstract String getAccessKey()
- A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.
setAccessKey
public abstract void setAccessKey(String accessKey)
getAlign
public abstract String getAlign()
- Aligns this object (vertically or horizontally)
with respect to its surrounding text. See the align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
setAlign
public abstract void setAlign(String align)
getAlt
public abstract String getAlt()
- Alternate text for user agents not rendering the normal content
of this element. See the alt attribute definition in HTML 4.0.
setAlt
public abstract void setAlt(String alt)
getChecked
public abstract boolean getChecked()
- Describes whether a radio or check box is checked, when
type has the value "Radio" or "Checkbox". The value is
TRUE if explicitly set. Represents the current state of the checkbox
or radio button. See the checked attribute definition in HTML 4.0.
setChecked
public abstract void setChecked(boolean checked)
getDisabled
public abstract boolean getDisabled()
- The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.
setDisabled
public abstract void setDisabled(boolean disabled)
getMaxLength
public abstract 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.0.
setMaxLength
public abstract void setMaxLength(int maxLength)
getName
public abstract String getName()
- Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0.
setName
public abstract void setName(String name)
getReadOnly
public abstract boolean getReadOnly()
- This control is read-only. When type has the value "text"
or "password" only. See the readonly attribute definition in HTML 4.0.
setReadOnly
public abstract void setReadOnly(boolean readOnly)
getSize
public abstract String getSize()
- Size information. The precise meaning is specific to each type of
field.
See the size attribute definition in HTML 4.0.
setSize
public abstract void setSize(String size)
getSrc
public abstract 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.0.
setSrc
public abstract void setSrc(String src)
getTabIndex
public abstract int getTabIndex()
- Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0.
setTabIndex
public abstract void setTabIndex(int tabIndex)
getType
public abstract String getType()
- The type of control created. See the type attribute definition in HTML 4.0.
getUseMap
public abstract String getUseMap()
- Use client-side image map. See the usemap attribute definition in HTML 4.0.
setUseMap
public abstract void setUseMap(String useMap)
getValue
public abstract String getValue()
- The current form control value. Used for radio buttons and check boxes. See the value attribute definition in HTML 4.0.
setValue
public abstract void setValue(String value)
blur
public abstract void blur()
- Removes keyboard focus from this element.
focus
public abstract void focus()
- Gives keyboard focus to this element.
select
public abstract void select()
- Select the contents of the text area. For INPUT elements
whose type attribute has one of the following values:
"Text", "File", or "Password".
click
public abstract void click()
- Simulate a mouse-click. For INPUT elements whose
type attribute has one of the following
values: "Button", "Checkbox", "Radio", "Reset", or "Submit".
All Packages Class Hierarchy This Package Previous Next Index