java.lang.Object | |||||
↳ | com.google.gwt.user.client.ui.UIObject | ||||
↳ | com.google.gwt.user.client.ui.Widget | ||||
↳ | com.google.gwt.user.client.ui.LabelBase<T> | ||||
↳ | com.google.gwt.user.client.ui.Label | ||||
↳ | com.google.gwt.user.client.ui.InlineLabel |
A widget that contains arbitrary text, not interpreted as HTML. This widget uses a <span> element, causing it to be displayed with inline layout.
setDirectionEstimator(boolean)
or
passing a DirectionEstimator parameter to the constructor, and is off by
default.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.Label
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasAutoHorizontalAlignment
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasHorizontalAlignment
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty label.
| |||||||||||
Creates a label with the specified text.
| |||||||||||
Creates a label with the specified text and direction.
| |||||||||||
Creates a label with the specified text and a default direction estimator.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This constructor may be used by subclasses to explicitly use an existing
element.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a InlineLabel widget that wraps an existing <div> or
<span> element.
|
Creates an empty label.
Creates a label with the specified text.
text | the new label's text |
---|
Creates a label with the specified text and direction.
text | the new label's text |
---|---|
dir | the text's direction. Note: Direction.DEFAULT means
direction should be inherited from the widget's parent element.
|
Creates a label with the specified text and a default direction estimator.
text | the new label's text |
---|---|
directionEstimator | A DirectionEstimator object used for automatic
direction adjustment. For convenience,
DEFAULT_DIRECTION_ESTIMATOR can be used.
|
This constructor may be used by subclasses to explicitly use an existing element. This element must be either a <div> <span> element.
element | the element to be used |
---|
Creates a InlineLabel widget that wraps an existing <div> or
<span> element.
This element must already be attached to the document. If the element is
removed from the document, you must call
detachNow(Widget)
.
element | the element to be wrapped |
---|