public class

LabelElement

extends Element
java.lang.Object
   ↳ com.google.gwt.core.client.JavaScriptObject
     ↳ com.google.gwt.dom.client.Node
       ↳ com.google.gwt.dom.client.Element
         ↳ com.google.gwt.dom.client.LabelElement

Class Overview

Form field label text.

Summary

[Expand]
Inherited Constants
From class com.google.gwt.dom.client.Node
Protected Constructors
LabelElement()
Public Methods
static LabelElement as(Element elem)
Assert that the given Element is compatible with this class and automatically typecast it.
final String getAccessKey()
A single character access key to give access to the form control.
final FormElement getForm()
Returns the FORM element containing this control.
final String getHtmlFor()
This attribute links this label with another form control by id attribute.
final void setAccessKey(String accessKey)
A single character access key to give access to the form control.
final void setHtmlFor(String htmlFor)
This attribute links this label with another form control by id attribute.
[Expand]
Inherited Methods
From class com.google.gwt.dom.client.Element
From class com.google.gwt.dom.client.Node
From class com.google.gwt.core.client.JavaScriptObject
From class java.lang.Object

Protected Constructors

protected LabelElement ()

Public Methods

public static LabelElement as (Element elem)

Assert that the given Element is compatible with this class and automatically typecast it.

public final String getAccessKey ()

A single character access key to give access to the form control.

public final FormElement getForm ()

Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

public final String getHtmlFor ()

This attribute links this label with another form control by id attribute.

public final void setAccessKey (String accessKey)

A single character access key to give access to the form control.

public final void setHtmlFor (String htmlFor)

This attribute links this label with another form control by id attribute.