001/*
002 * Copyright (c) 2003 World Wide Web Consortium,
003 * (Massachusetts Institute of Technology, Institut National de
004 * Recherche en Informatique et en Automatique, Keio University). All
005 * Rights Reserved. This program is distributed under the W3C's Software
006 * Intellectual Property License. This program is distributed in the
007 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009 * PURPOSE.
010 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011 */
012
013package org.w3c.dom.html2;
014
015/**
016 * Provides a caption for a <code>FIELDSET</code> grouping. See the LEGEND 
017 * element definition in HTML 4.01.
018 * <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>.
019 */
020public interface HTMLLegendElement extends HTMLElement {
021    /**
022     * Returns the <code>FORM</code> element containing this control. Returns 
023     * <code>null</code> if this control is not within the context of a 
024     * form. 
025     */
026    public HTMLFormElement getForm();
027
028    /**
029     * A single character access key to give access to the form control. See 
030     * the accesskey attribute definition in HTML 4.01.
031     */
032    public String getAccessKey();
033    /**
034     * A single character access key to give access to the form control. See 
035     * the accesskey attribute definition in HTML 4.01.
036     */
037    public void setAccessKey(String accessKey);
038
039    /**
040     * Text alignment relative to <code>FIELDSET</code>. See the align 
041     * attribute definition in HTML 4.01. This attribute is deprecated in 
042     * HTML 4.01.
043     */
044    public String getAlign();
045    /**
046     * Text alignment relative to <code>FIELDSET</code>. See the align 
047     * attribute definition in HTML 4.01. This attribute is deprecated in 
048     * HTML 4.01.
049     */
050    public void setAlign(String align);
051
052}