All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.w3c.dom.html.HTMLInputElement Maven / Gradle / Ivy

The newest version!
// Copyright (c) 1998 by W3C
//
// DOM is a trademark of W3C
// The DOM level 1 specification, from which this
// source is derived, is copyright by W3C.
// See: http://www.w3.org/TR/REC-DOM-Level-1/
//

package org.w3c.dom.html;

import org.w3c.dom.*;

/**

  

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.


Property Summary
 defaultValue getDefaultValue setDefaultValue

Stores the initial control value (i.e., the initial value of value).

 defaultChecked getDefaultChecked setDefaultChecked

When type has the value "Radio" or "Checkbox", stores the initial value of the checked attribute.

 form getForm

Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

 accept getAccept setAccept

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.

 accessKey getAccessKey setAccessKey

A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.

 align getAlign setAlign

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.

 alt getAlt setAlt

Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.0.

 checked getChecked setChecked

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.

 disabled getDisabled setDisabled

The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.

 maxLength getMaxLength setMaxLength

Maximum number of characters for text fields, when type has the value "Text" or "Password". See the maxlength attribute definition in HTML 4.0.

 name getName setName

Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0.

 readOnly getReadOnly setReadOnly

This control is read-only. When type has the value "text" or "password" only. See the readonly attribute definition in HTML 4.0.

 size getSize setSize

Size information. The precise meaning is specific to each type of field. See the size attribute definition in HTML 4.0.

 src getSrc setSrc

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.

 tabIndex getTabIndex setTabIndex

Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0.

 type getType

The type of control created. See the type attribute definition in HTML 4.0.

 useMap getUseMap setUseMap

Use client-side image map. See the usemap attribute definition in HTML 4.0.

 value getValue setValue

The current form control value. Used for radio buttons and check boxes. See the value attribute definition in HTML 4.0.

  */ public interface HTMLInputElement extends HTMLElement { /** Assigns the value of the defaultValue property. */ void setDefaultValue (String defaultValue); /** * Returns the value of the defaultValue property. */ String getDefaultValue (); /** Assigns the value of the defaultChecked property. */ void setDefaultChecked (boolean defaultChecked); /** * Returns the value of the defaultChecked property. */ boolean getDefaultChecked (); /** * Returns the value of the form property. */ HTMLFormElement getForm (); /** Assigns the value of the accept property. */ void setAccept (String accept); /** * Returns the value of the accept property. */ String getAccept (); /** Assigns the value of the accessKey property. */ void setAccessKey (String accessKey); /** * Returns the value of the accessKey property. */ String getAccessKey (); /** Assigns the value of the align property. */ void setAlign (String align); /** * Returns the value of the align property. */ String getAlign (); /** Assigns the value of the alt property. */ void setAlt (String alt); /** * Returns the value of the alt property. */ String getAlt (); /** Assigns the value of the checked property. */ void setChecked (boolean checked); /** * Returns the value of the checked property. */ boolean getChecked (); /** Assigns the value of the disabled property. */ void setDisabled (boolean disabled); /** * Returns the value of the disabled property. */ boolean getDisabled (); /** Assigns the value of the maxLength property. */ void setMaxLength (int maxLength); /** * Returns the value of the maxLength property. */ int getMaxLength (); /** Assigns the value of the name property. */ void setName (String name); /** * Returns the value of the name property. */ String getName (); /** Assigns the value of the readOnly property. */ void setReadOnly (boolean readOnly); /** * Returns the value of the readOnly property. */ boolean getReadOnly (); /** Assigns the value of the size property. */ void setSize (String size); /** * Returns the value of the size property. */ String getSize (); /** Assigns the value of the src property. */ void setSrc (String src); /** * Returns the value of the src property. */ String getSrc (); /** Assigns the value of the tabIndex property. */ void setTabIndex (int tabIndex); /** * Returns the value of the tabIndex property. */ int getTabIndex (); /** * Returns the value of the type property. */ String getType (); /** Assigns the value of the useMap property. */ void setUseMap (String useMap); /** * Returns the value of the useMap property. */ String getUseMap (); /** Assigns the value of the value property. */ void setValue (String value); /** * Returns the value of the value property. */ String getValue (); /**

Removes keyboard focus from this element.

*/ void blur (); /**

Gives keyboard focus to this element.

*/ void focus (); /**

Select the contents of the text area. For INPUT elements whose type attribute has one of the following values: "Text", "File", or "Password".

*/ void select (); /**

Simulate a mouse-click. For INPUT elements whose type attribute has one of the following values: "Button", "Checkbox", "Radio", "Reset", or "Submit".

*/ void click (); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy