1 16 package org.apache.html.dom; 17 18 import org.w3c.dom.html.HTMLLegendElement; 19 20 27 public class HTMLLegendElementImpl 28 extends HTMLElementImpl 29 implements HTMLLegendElement 30 { 31 32 private static final long serialVersionUID = 3257846567426865457L; 33 34 public String getAccessKey() 35 { 36 String accessKey; 37 38 accessKey = getAttribute( "accesskey" ); 40 if ( accessKey != null && accessKey.length() > 1 ) 41 accessKey = accessKey.substring( 0, 1 ); 42 return accessKey; 43 } 44 45 46 public void setAccessKey( String accessKey ) 47 { 48 if ( accessKey != null && accessKey.length() > 1 ) 50 accessKey = accessKey.substring( 0, 1 ); 51 setAttribute( "accesskey", accessKey ); 52 } 53 54 55 public String getAlign() 56 { 57 return getAttribute( "align" ); 58 } 59 60 61 public void setAlign( String align ) 62 { 63 setAttribute( "align", align ); 64 } 65 66 67 72 public HTMLLegendElementImpl( HTMLDocumentImpl owner, String name ) 73 { 74 super( owner, name ); 75 } 76 77 78 } 79 80 | Popular Tags |