1 16 package org.apache.html.dom; 17 18 import org.w3c.dom.html.HTMLCollection; 19 import org.w3c.dom.html.HTMLMapElement; 20 import org.w3c.dom.Node ; 21 22 29 public class HTMLMapElementImpl 30 extends HTMLElementImpl 31 implements HTMLMapElement 32 { 33 34 private static final long serialVersionUID = 3257847692725270834L; 35 36 public HTMLCollection getAreas() 37 { 38 if ( _areas == null ) 39 _areas = new HTMLCollectionImpl( this, HTMLCollectionImpl.AREA ); 40 return _areas; 41 } 42 43 44 public String getName() 45 { 46 return getAttribute( "name" ); 47 } 48 49 50 public void setName( String name ) 51 { 52 setAttribute( "name", name ); 53 } 54 55 59 public Node cloneNode( boolean deep ) 60 { 61 HTMLMapElementImpl clonedNode = (HTMLMapElementImpl)super.cloneNode( deep ); 62 clonedNode._areas = null; 63 return clonedNode; 64 } 65 66 71 public HTMLMapElementImpl( HTMLDocumentImpl owner, String name ) 72 { 73 super( owner, name ); 74 } 75 76 77 private HTMLCollection _areas; 78 79 80 } 81 82 | Popular Tags |