1 20 21 22 package org.ozoneDB.xml.dom.html; 23 24 25 import org.ozoneDB.xml.dom.ElementImpl; 26 import org.w3c.dom.html.HTMLLabelElement; 27 28 29 35 public final class HTMLLabelElementImpl extends HTMLElementImpl implements HTMLLabelElement, HTMLFormControl { 36 37 38 public String getAccessKey() { 39 String accessKey; 40 41 accessKey = getAttribute( "accesskey" ); 43 if (accessKey != null && accessKey.length() > 1) { 44 accessKey = accessKey.substring( 0, 1 ); 45 } 46 return accessKey; 47 } 48 49 50 public void setAccessKey( String accessKey ) { 51 if (accessKey != null && accessKey.length() > 1) { 53 accessKey = accessKey.substring( 0, 1 ); 54 } 55 setAttribute( "accesskey", accessKey ); 56 } 57 58 59 public String getHtmlFor() { 60 return getAttribute( "for" ); 61 } 62 63 64 public void setHtmlFor( String htmlFor ) { 65 setAttribute( "for", htmlFor ); 66 } 67 68 69 74 public HTMLLabelElementImpl( HTMLDocumentImpl owner, String name ) { 75 super( owner, "LABEL" ); 76 } 77 78 79 } 80 | Popular Tags |