1 57 package org.enhydra.apache.html.dom; 58 59 60 import org.enhydra.apache.xerces.dom.ElementImpl; 61 import org.w3c.dom.html.HTMLLegendElement; 62 63 64 70 public class HTMLLegendElementImpl 71 extends HTMLElementImpl 72 implements HTMLLegendElement 73 { 74 75 76 public String getAccessKey() 77 { 78 String accessKey; 79 80 accessKey = getAttribute( "accesskey" ); 82 if ( accessKey != null && accessKey.length() > 1 ) 83 accessKey = accessKey.substring( 0, 1 ); 84 return accessKey; 85 } 86 87 88 public void setAccessKey( String accessKey ) 89 { 90 if ( accessKey != null && accessKey.length() > 1 ) 92 accessKey = accessKey.substring( 0, 1 ); 93 setAttribute( "accesskey", accessKey ); 94 } 95 96 97 public String getAlign() 98 { 99 return getAttribute( "align" ); 100 } 101 102 103 public void setAlign( String align ) 104 { 105 setAttribute( "align", align ); 106 } 107 108 109 114 public HTMLLegendElementImpl( HTMLDocumentImpl owner, String name ) 115 { 116 super( owner, name ); 117 } 118 119 120 } 121 122 | Popular Tags |