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.html.HTMLLegendElement; 61 62 63 69 public class HTMLLegendElementImpl 70 extends LazyHTMLElement 71 implements HTMLLegendElement 72 { 73 74 75 public String getAccessKey() 76 { 77 String accessKey; 78 79 accessKey = getAttribute( "accesskey" ); 81 if ( accessKey != null && accessKey.length() > 1 ) 82 accessKey = accessKey.substring( 0, 1 ); 83 return accessKey; 84 } 85 86 87 public void setAccessKey( String accessKey ) 88 { 89 if ( accessKey != null && accessKey.length() > 1 ) 91 accessKey = accessKey.substring( 0, 1 ); 92 setAttribute( "accesskey", accessKey ); 93 } 94 95 96 public String getAlign() 97 { 98 return getAttribute( "align" ); 99 } 100 101 102 public void setAlign( String align ) 103 { 104 setAttribute( "align", align ); 105 } 106 107 108 113 public HTMLLegendElementImpl( LazyHTMLDocument owner, LazyElement template, String name ) 114 { 115 super( owner, template, name ); 116 } 117 118 119 } 120 121 | Popular Tags |