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