1 /* 2 * Copyright (c) 1998 World Wide Web Consortium, (Massachusetts Institute of 3 * Technology, Institut National de Recherche en Informatique et en 4 * Automatique, Keio University). 5 * All Rights Reserved. http://www.w3.org/Consortium/Legal/ 6 */ 7 8 package org.w3c.dom.html; 9 10 import org.w3c.dom; 11 12 /** 13 * Push button. See the BUTTON element definition in HTML 4.0. 14 */ 15 public interface HTMLButtonElement extends HTMLElement { 16 /** 17 * Returns the <code>FORM</code> element containing this control.Returns 18 * null if this control is not within the context of a form. 19 */ 20 public HTMLFormElement getForm(); 21 /** 22 * A single character access key to give access to the form control. See the 23 * accesskey attribute definition in HTML 4.0. 24 */ 25 public String getAccessKey(); 26 public void setAccessKey(String accessKey); 27 /** 28 * The control is unavailable in this context. See the disabled attribute 29 * definition in HTML 4.0. 30 */ 31 public boolean getDisabled(); 32 public void setDisabled(boolean disabled); 33 /** 34 * Form control or object name when submitted with a form. See the name 35 * attribute definition in HTML 4.0. 36 */ 37 public String getName(); 38 public void setName(String name); 39 /** 40 * Index that represents the element's position in the tabbing order. See 41 * the tabindex attribute definition in HTML 4.0. 42 */ 43 public int getTabIndex(); 44 public void setTabIndex(int tabIndex); 45 /** 46 * The type of button. See the type attribute definition in HTML 4.0. 47 */ 48 public String getType(); 49 /** 50 * The current form control value. See the value attribute definition in 51 * HTML 4.0. 52 */ 53 public String getValue(); 54 public void setValue(String value); 55 } 56