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. * Provides a caption for a <code>FIELDSET</code> grouping. See the LEGEND
  15. * element definition in HTML 4.0.
  16. * <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>.
  17. */
  18. public interface HTMLLegendElement extends HTMLElement {
  19. /**
  20. * Returns the <code>FORM</code> element containing this control. Returns
  21. * <code>null</code> if this control is not within the context of a form.
  22. */
  23. public HTMLFormElement getForm();
  24. /**
  25. * A single character access key to give access to the form control. See
  26. * the accesskey attribute definition in HTML 4.0.
  27. */
  28. public String getAccessKey();
  29. public void setAccessKey(String accessKey);
  30. /**
  31. * Text alignment relative to <code>FIELDSET</code> . See the align
  32. * attribute definition in HTML 4.0. This attribute is deprecated in HTML
  33. * 4.0.
  34. */
  35. public String getAlign();
  36. public void setAlign(String align);
  37. }