001 /*
002 * Copyright (c) 2003 World Wide Web Consortium,
003 * (Massachusetts Institute of Technology, Institut National de
004 * Recherche en Informatique et en Automatique, Keio University). All
005 * Rights Reserved. This program is distributed under the W3C's Software
006 * Intellectual Property License. This program is distributed in the
007 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009 * PURPOSE.
010 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011 */
012
013 package org.w3c.dom.html2;
014
015 /**
016 * Push button. See the BUTTON element definition in HTML 4.01.
017 * <p>See also the <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>Document Object Model (DOM) Level 2 HTML Specification</a>.
018 */
019 public interface HTMLButtonElement extends HTMLElement {
020 /**
021 * Returns the <code>FORM</code> element containing this control. Returns
022 * <code>null</code> if this control is not within the context of a
023 * form.
024 */
025 public HTMLFormElement getForm();
026
027 /**
028 * A single character access key to give access to the form control. See
029 * the accesskey attribute definition in HTML 4.01.
030 */
031 public String getAccessKey();
032 /**
033 * A single character access key to give access to the form control. See
034 * the accesskey attribute definition in HTML 4.01.
035 */
036 public void setAccessKey(String accessKey);
037
038 /**
039 * The control is unavailable in this context. See the disabled attribute
040 * definition in HTML 4.01.
041 */
042 public boolean getDisabled();
043 /**
044 * The control is unavailable in this context. See the disabled attribute
045 * definition in HTML 4.01.
046 */
047 public void setDisabled(boolean disabled);
048
049 /**
050 * Form control or object name when submitted with a form. See the name
051 * attribute definition in HTML 4.01.
052 */
053 public String getName();
054 /**
055 * Form control or object name when submitted with a form. See the name
056 * attribute definition in HTML 4.01.
057 */
058 public void setName(String name);
059
060 /**
061 * Index that represents the element's position in the tabbing order. See
062 * the tabindex attribute definition in HTML 4.01.
063 */
064 public int getTabIndex();
065 /**
066 * Index that represents the element's position in the tabbing order. See
067 * the tabindex attribute definition in HTML 4.01.
068 */
069 public void setTabIndex(int tabIndex);
070
071 /**
072 * The type of button (all lower case). See the type attribute definition
073 * in HTML 4.01.
074 */
075 public String getType();
076
077 /**
078 * The current form control value. See the value attribute definition in
079 * HTML 4.01.
080 */
081 public String getValue();
082 /**
083 * The current form control value. See the value attribute definition in
084 * HTML 4.01.
085 */
086 public void setValue(String value);
087
088 }