HTMLLabelElementImplpublic class HTMLLabelElementImpl extends HTMLElementImpl implements HTMLFormControl, HTMLLabelElement
Constructors Summary |
---|
public HTMLLabelElementImpl(HTMLDocumentImpl owner, String name)Constructor requires owner document.
super( owner, name );
|
Methods Summary |
---|
public java.lang.String | getAccessKey()
String accessKey;
// Make sure that the access key is a single character.
accessKey = getAttribute( "accesskey" );
if ( accessKey != null && accessKey.length() > 1 )
accessKey = accessKey.substring( 0, 1 );
return accessKey;
| public java.lang.String | getHtmlFor()
return getAttribute( "for" );
| public void | setAccessKey(java.lang.String accessKey)
// Make sure that the access key is a single character.
if ( accessKey != null && accessKey.length() > 1 )
accessKey = accessKey.substring( 0, 1 );
setAttribute( "accesskey", accessKey );
| public void | setHtmlFor(java.lang.String htmlFor)
setAttribute( "for", htmlFor );
|
|