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