286N/A/*
286N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
286N/A *
286N/A * This code is free software; you can redistribute it and/or modify it
286N/A * under the terms of the GNU General Public License version 2 only, as
286N/A * published by the Free Software Foundation. Oracle designates this
286N/A * particular file as subject to the "Classpath" exception as provided
286N/A * by Oracle in the LICENSE file that accompanied this code.
286N/A *
286N/A * This code is distributed in the hope that it will be useful, but WITHOUT
286N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
286N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
286N/A * version 2 for more details (a copy is included in the LICENSE file that
286N/A * accompanied this code).
286N/A *
286N/A * You should have received a copy of the GNU General Public License version
286N/A * 2 along with this work; if not, write to the Free Software Foundation,
286N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
286N/A *
286N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
286N/A * or visit www.oracle.com if you need additional information or have any
286N/A * questions.
286N/A */
286N/A
286N/A/*
286N/A * This file is available under and governed by the GNU General Public
286N/A * License version 2 only, as published by the Free Software Foundation.
286N/A * However, the following notice accompanied the original version of this
286N/A * file and, per its terms, should not be removed:
286N/A *
286N/A * Copyright (c) 2000 World Wide Web Consortium,
286N/A * (Massachusetts Institute of Technology, Institut National de
286N/A * Recherche en Informatique et en Automatique, Keio University). All
286N/A * Rights Reserved. This program is distributed under the W3C's Software
286N/A * Intellectual Property License. This program is distributed in the
286N/A * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
286N/A * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
286N/A * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
286N/A * details.
286N/A */
286N/A
286N/Apackage org.w3c.dom.html;
286N/A
286N/A/**
286N/A * Form control. Note. Depending upon the environment in which the page is
286N/A * being viewed, the value property may be read-only for the file upload
286N/A * input type. For the "password" input type, the actual value returned may
286N/A * be masked to prevent unauthorized use. See the INPUT element definition
286N/A * in HTML 4.0.
286N/A * <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
286N/A */
286N/Apublic interface HTMLInputElement extends HTMLElement {
286N/A /**
286N/A * When the <code>type</code> attribute of the element has the value
286N/A * "Text", "File" or "Password", this represents the HTML value attribute
286N/A * of the element. The value of this attribute does not change if the
286N/A * contents of the corresponding form control, in an interactive user
286N/A * agent, changes. Changing this attribute, however, resets the contents
286N/A * of the form control. See the value attribute definition in HTML 4.0.
286N/A */
286N/A public String getDefaultValue();
286N/A public void setDefaultValue(String defaultValue);
286N/A
286N/A /**
286N/A * When <code>type</code> has the value "Radio" or "Checkbox", this
286N/A * represents the HTML checked attribute of the element. The value of
286N/A * this attribute does not change if the state of the corresponding form
286N/A * control, in an interactive user agent, changes. Changes to this
286N/A * attribute, however, resets the state of the form control. See the
286N/A * checked attribute definition in HTML 4.0.
286N/A */
286N/A public boolean getDefaultChecked();
286N/A public void setDefaultChecked(boolean defaultChecked);
286N/A
286N/A /**
286N/A * Returns the <code>FORM</code> element containing this control. Returns
286N/A * <code>null</code> if this control is not within the context of a form.
286N/A */
286N/A public HTMLFormElement getForm();
286N/A
286N/A /**
286N/A * A comma-separated list of content types that a server processing this
286N/A * form will handle correctly. See the accept attribute definition in
286N/A * HTML 4.0.
286N/A */
286N/A public String getAccept();
286N/A public void setAccept(String accept);
286N/A
286N/A /**
286N/A * A single character access key to give access to the form control. See
286N/A * the accesskey attribute definition in HTML 4.0.
286N/A */
286N/A public String getAccessKey();
286N/A public void setAccessKey(String accessKey);
286N/A
286N/A /**
286N/A * Aligns this object (vertically or horizontally) with respect to its
286N/A * surrounding text. See the align attribute definition in HTML 4.0.
286N/A * This attribute is deprecated in HTML 4.0.
286N/A */
286N/A public String getAlign();
286N/A public void setAlign(String align);
286N/A
286N/A /**
286N/A * Alternate text for user agents not rendering the normal content of
286N/A * this element. See the alt attribute definition in HTML 4.0.
286N/A */
286N/A public String getAlt();
286N/A public void setAlt(String alt);
286N/A
286N/A /**
286N/A * When the <code>type</code> attribute of the element has the value
286N/A * "Radio" or "Checkbox", this represents the current state of the form
286N/A * control, in an interactive user agent. Changes to this attribute
286N/A * change the state of the form control, but do not change the value of
286N/A * the HTML value attribute of the element.
286N/A */
286N/A public boolean getChecked();
286N/A public void setChecked(boolean checked);
286N/A
286N/A /**
286N/A * The control is unavailable in this context. See the disabled
286N/A * attribute definition in HTML 4.0.
286N/A */
286N/A public boolean getDisabled();
286N/A public void setDisabled(boolean disabled);
286N/A
286N/A /**
286N/A * Maximum number of characters for text fields, when <code>type</code>
286N/A * has the value "Text" or "Password". See the maxlength attribute
286N/A * definition in HTML 4.0.
286N/A */
286N/A public int getMaxLength();
286N/A public void setMaxLength(int maxLength);
286N/A
286N/A /**
286N/A * Form control or object name when submitted with a form. See the name
286N/A * attribute definition in HTML 4.0.
286N/A */
286N/A public String getName();
286N/A public void setName(String name);
286N/A
286N/A /**
286N/A * This control is read-only. Relevant only when <code>type</code> has
286N/A * the value "Text" or "Password". See the readonly attribute definition
286N/A * in HTML 4.0.
286N/A */
286N/A public boolean getReadOnly();
286N/A public void setReadOnly(boolean readOnly);
286N/A
286N/A /**
286N/A * Size information. The precise meaning is specific to each type of
286N/A * field. See the size attribute definition in HTML 4.0.
286N/A */
286N/A public String getSize();
286N/A public void setSize(String size);
286N/A
286N/A /**
286N/A * When the <code>type</code> attribute has the value "Image", this
286N/A * attribute specifies the location of the image to be used to decorate
286N/A * the graphical submit button. See the src attribute definition in HTML
286N/A * 4.0.
286N/A */
286N/A public String getSrc();
286N/A public void setSrc(String src);
286N/A
286N/A /**
286N/A * Index that represents the element's position in the tabbing order. See
286N/A * the tabindex attribute definition in HTML 4.0.
286N/A */
286N/A public int getTabIndex();
286N/A public void setTabIndex(int tabIndex);
286N/A
286N/A /**
286N/A * The type of control created. See the type attribute definition in
286N/A * HTML 4.0.
286N/A */
286N/A public String getType();
286N/A
286N/A /**
286N/A * Use client-side image map. See the usemap attribute definition in
286N/A * HTML 4.0.
286N/A */
286N/A public String getUseMap();
286N/A public void setUseMap(String useMap);
286N/A
286N/A /**
286N/A * When the <code>type</code> attribute of the element has the value
286N/A * "Text", "File" or "Password", this represents the current contents of
286N/A * the corresponding form control, in an interactive user agent. Changing
286N/A * this attribute changes the contents of the form control, but does not
286N/A * change the value of the HTML value attribute of the element. When the
286N/A * <code>type</code> attribute of the element has the value "Button",
286N/A * "Hidden", "Submit", "Reset", "Image", "Checkbox" or "Radio", this
286N/A * represents the HTML value attribute of the element. See the value
286N/A * attribute definition in HTML 4.0.
286N/A */
286N/A public String getValue();
286N/A public void setValue(String value);
286N/A
286N/A /**
286N/A * Removes keyboard focus from this element.
286N/A */
286N/A public void blur();
286N/A
286N/A /**
286N/A * Gives keyboard focus to this element.
286N/A */
286N/A public void focus();
286N/A
286N/A /**
286N/A * Select the contents of the text area. For <code>INPUT</code> elements
286N/A * whose <code>type</code> attribute has one of the following values:
286N/A * "Text", "File", or "Password".
286N/A */
286N/A public void select();
286N/A
286N/A /**
286N/A * Simulate a mouse-click. For <code>INPUT</code> elements whose
286N/A * <code>type</code> attribute has one of the following values: "Button",
286N/A * "Checkbox", "Radio", "Reset", or "Submit".
286N/A */
286N/A public void click();
286N/A
286N/A}