KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > xml > dom > html > HTMLMapElementImpl


1 /**
2  * org/ozone-db/xml/dom/html/HTMLMapElementImpl.java
3  *
4  * The contents of this file are subject to the OpenXML Public
5  * License Version 1.0; you may not use this file except in compliance
6  * with the License. You may obtain a copy of the License at
7  * http://www.openxml.org/license.html
8  *
9  * THIS SOFTWARE IS DISTRIBUTED ON AN "AS IS" BASIS WITHOUT WARRANTY
10  * OF ANY KIND, EITHER EXPRESSED OR IMPLIED. THE INITIAL DEVELOPER
11  * AND ALL CONTRIBUTORS SHALL NOT BE LIABLE FOR ANY DAMAGES AS A
12  * RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
13  * DERIVATIVES. SEE THE LICENSE FOR THE SPECIFIC LANGUAGE GOVERNING
14  * RIGHTS AND LIMITATIONS UNDER THE LICENSE.
15  *
16  * The Initial Developer of this code under the License is Assaf Arkin.
17  * Portions created by Assaf Arkin are Copyright (C) 1998, 1999.
18  * All Rights Reserved.
19  */

20
21
22 package org.ozoneDB.xml.dom.html;
23
24
25 import org.ozoneDB.xml.dom.ElementImpl;
26 import org.w3c.dom.html.HTMLCollection;
27 import org.w3c.dom.html.HTMLMapElement;
28
29
30 /**
31  * @version $Revision: 1.2 $ $Date: 2003/11/20 23:18:42 $
32  * @author <a HREF="mailto:arkin@trendline.co.il">Assaf Arkin</a>
33  * @see org.w3c.dom.html.HTMLMapElement
34  * @see ElementImpl
35  */

36 public final class HTMLMapElementImpl extends HTMLElementImpl implements HTMLMapElement {
37
38
39     public HTMLCollection getAreas() {
40         if (_areas == null) {
41             _areas = new HTMLCollectionImpl( this, HTMLCollectionImpl.AREA );
42         }
43         return _areas;
44     }
45
46
47     public String JavaDoc getName() {
48         return getAttribute( "name" );
49     }
50
51
52     public void setName( String JavaDoc name ) {
53         setAttribute( "name", name );
54     }
55
56
57     /**
58      * Constructor requires owner document.
59      *
60      * @param owner The owner HTML document
61      */

62     public HTMLMapElementImpl( HTMLDocumentImpl owner, String JavaDoc name ) {
63         super( owner, "MAP" );
64     }
65
66
67     private HTMLCollection _areas;
68
69
70 }
71
Popular Tags