1 57 package org.enhydra.apache.html.dom; 58 59 60 import org.enhydra.apache.xerces.dom.ElementImpl; 61 import org.w3c.dom.html.HTMLLabelElement; 62 63 64 70 public class HTMLLabelElementImpl 71 extends HTMLElementImpl 72 implements HTMLLabelElement, HTMLFormControl 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 getHtmlFor() 98 { 99 return getAttribute( "for" ); 100 } 101 102 103 public void setHtmlFor( String htmlFor ) 104 { 105 setAttribute( "for", htmlFor ); 106 } 107 108 109 114 public HTMLLabelElementImpl( HTMLDocumentImpl owner, String name ) 115 { 116 super( owner, name ); 117 } 118 119 120 } 121 122 | Popular Tags |