1 57 package com.sun.org.apache.html.internal.dom; 58 59 60 import org.w3c.dom.html.HTMLLegendElement; 61 62 63 69 public class HTMLLegendElementImpl 70 extends HTMLElementImpl 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( HTMLDocumentImpl owner, String name ) 114 { 115 super( owner, name ); 116 } 117 118 119 } 120 121 | Popular Tags |