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