1 57 package org.enhydra.apache.html.dom; 58 59 60 import org.enhydra.apache.xerces.dom.ElementImpl; 61 import org.w3c.dom.Node ; 62 import org.w3c.dom.html.HTMLCollection; 63 import org.w3c.dom.html.HTMLMapElement; 64 65 66 72 public class HTMLMapElementImpl 73 extends HTMLElementImpl 74 implements HTMLMapElement 75 { 76 77 78 79 public HTMLCollection getAreas() 80 { 81 if ( _areas == null ) 82 _areas = new HTMLCollectionImpl( this, HTMLCollectionImpl.AREA ); 83 return _areas; 84 } 85 86 87 public String getName() 88 { 89 return getAttribute( "name" ); 90 } 91 92 93 public void setName( String name ) 94 { 95 setAttribute( "name", name ); 96 } 97 98 102 public Node cloneNode( boolean deep ) 103 { 104 HTMLMapElementImpl clonedNode = (HTMLMapElementImpl)super.cloneNode( deep ); 105 clonedNode._areas = null; 106 return clonedNode; 107 } 108 109 114 public HTMLMapElementImpl( HTMLDocumentImpl owner, String name ) 115 { 116 super( owner, name ); 117 } 118 119 120 private HTMLCollection _areas; 121 122 123 } 124 125 | Popular Tags |