Source for org.w3c.dom.html2.HTMLLabelElement

   1: /*
   2:  * Copyright (c) 2003 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.
  10:  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11:  */
  12: 
  13: package org.w3c.dom.html2;
  14: 
  15: /**
  16:  * Form field label text. See the LABEL element definition in HTML 4.01.
  17:  * <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>.
  18:  */
  19: public interface HTMLLabelElement 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
  23:      * form.
  24:      */
  25:     public HTMLFormElement getForm();
  26: 
  27:     /**
  28:      * A single character access key to give access to the form control. See
  29:      * the accesskey attribute definition in HTML 4.01.
  30:      */
  31:     public String getAccessKey();
  32:     /**
  33:      * A single character access key to give access to the form control. See
  34:      * the accesskey attribute definition in HTML 4.01.
  35:      */
  36:     public void setAccessKey(String accessKey);
  37: 
  38:     /**
  39:      * This attribute links this label with another form control by
  40:      * <code>id</code> attribute. See the for attribute definition in HTML
  41:      * 4.01.
  42:      */
  43:     public String getHtmlFor();
  44:     /**
  45:      * This attribute links this label with another form control by
  46:      * <code>id</code> attribute. See the for attribute definition in HTML
  47:      * 4.01.
  48:      */
  49:     public void setHtmlFor(String htmlFor);
  50: 
  51: }