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