1 16 package org.apache.html.dom; 17 18 import org.w3c.dom.html.HTMLLabelElement; 19 20 27 public class HTMLLabelElementImpl 28 extends HTMLElementImpl 29 implements HTMLLabelElement, HTMLFormControl 30 { 31 32 private static final long serialVersionUID = 3834594305066416178L; 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 getHtmlFor() 56 { 57 return getAttribute( "for" ); 58 } 59 60 61 public void setHtmlFor( String htmlFor ) 62 { 63 setAttribute( "for", htmlFor ); 64 } 65 66 67 72 public HTMLLabelElementImpl( HTMLDocumentImpl owner, String name ) 73 { 74 super( owner, name ); 75 } 76 77 78 } 79 80 | Popular Tags |