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> |
Known Direct Subclasses
Label,
ValueLabel<T>
|
Known Indirect Subclasses
|
Abstract base class for all text display widgets.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.gwt.user.client.ui.HasAutoHorizontalAlignment
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasHorizontalAlignment
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the horizontal auto-alignment setting.
| |||||||||||
Returns the
DirectionEstimator object. | |||||||||||
Gets the horizontal alignment.
| |||||||||||
Gets whether word-wrapping is enabled.
| |||||||||||
Sets the horizontal alignment, allowing in addition to the "static"
HasHorizontalAlignment.HorizontalAlignmentConstant values, the
"automatic" HasHorizontalAlignment.AutoHorizontalAlignmentConstant
values that depend on the content direction. | |||||||||||
Sets the
DirectionEstimator object.
Note: DirectionEstimator should be set before the widget has any content; it's highly recommended to set it using a constructor. | |||||||||||
Toggles on / off direction estimation.
See note at | |||||||||||
Sets the horizontal alignment.
Note: A subsequent call to | |||||||||||
Sets whether word-wrapping is enabled.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the horizontal alignment of the widget according to the current
AutoHorizontalAlignment setting.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.Widget
| |||||||||||
From class
com.google.gwt.user.client.ui.UIObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface com.google.gwt.event.logical.shared.HasAttachHandlers | |||||||||||
From interface com.google.gwt.event.shared.HasHandlers | |||||||||||
From interface com.google.gwt.i18n.shared.HasDirectionEstimator | |||||||||||
From interface
com.google.gwt.user.client.EventListener
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasAutoHorizontalAlignment
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasHorizontalAlignment
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasWordWrap
| |||||||||||
From interface
com.google.gwt.user.client.ui.IsWidget
|
Gets the horizontal auto-alignment setting. This may be one of the
auto-alignment values above that depend on content direction (e.g.
ALIGN_CONTENT_START
), or one of the
"static" HasHorizontalAlignment.HorizontalAlignmentConstant
alignment values (e.g. ALIGN_LOCALE_START
).
It may be set by either setAutoHorizontalAlignment
or HasHorizontalAlignment#setHorizontalAlignment
. The default is null,
indicating that no specific horizontal alignment has been set, allowing it
to be determined by the usual HTML and CSS mechanisms.
Gets the horizontal alignment.
ALIGN_LEFT
,
ALIGN_CENTER
,
ALIGN_RIGHT
,
ALIGN_JUSTIFY
, or
null).
Gets whether word-wrapping is enabled.
true
if word-wrapping is enabled.
Sets the horizontal alignment, allowing in addition to the "static"
HasHorizontalAlignment.HorizontalAlignmentConstant
values, the
"automatic" HasHorizontalAlignment.AutoHorizontalAlignmentConstant
values that depend on the content direction. Determines the values returned
by both getAutoHorizontalAlignment()
and
getHorizontalAlignment()
.
For the ALIGN_CONTENT_START
and ALIGN_CONTENT_END
values, sets the horizontal alignment (including the value of HasHorizontalAlignment#getHorizontalAlignment()
) to the start or end edge
of the current content's direction, respectively, and continues to
automatically update it whenever the content direction changes.
For other values, operates like setHorizontalAlignment(HasHorizontalAlignment.HorizontalAlignmentConstant)
.
For null
, the horizontal alignment is cleared, allowing it to
be determined by the standard HTML mechanisms such as inheritance and CSS
rules.
autoAlignment | the new automatic horizontal alignment policy |
---|
Sets the DirectionEstimator
object.
Note: DirectionEstimator should be set before the widget has any content; it's highly recommended to set it using a constructor. Reason: if the widget already has non-empty content, this will update its direction according to the new estimator's result. This may cause flicker, and thus should be avoided.
directionEstimator | The {code DirectionEstimator} to be set. null means turning off direction estimation.
|
---|
Toggles on / off direction estimation.
See note at setDirectionEstimator(DirectionEstimator)
.
enabled | Whether to enable direction estimation. If true ,
sets the DirectionEstimator object to a default
DirectionEstimator .
|
---|
Sets the horizontal alignment.
Use null
to clear horizontal alignment, allowing it to be
determined by the standard HTML mechanisms such as inheritance and CSS
rules.
Note: A subsequent call to setAutoHorizontalAlignment(HasHorizontalAlignment.AutoHorizontalAlignmentConstant)
may override
the horizontal alignment set by this method.
Note: For null
, the horizontal alignment is cleared, allowing it to
be determined by the standard HTML mechanisms such as inheritance and CSS
rules.
align | the horizontal alignment (
ALIGN_LEFT ,
ALIGN_CENTER ,
ALIGN_RIGHT ,
ALIGN_JUSTIFY ,
ALIGN_LOCALE_START , or
ALIGN_LOCALE_END ).
|
---|
Sets whether word-wrapping is enabled.
wrap | true to enable word-wrapping.
|
---|
Sets the horizontal alignment of the widget according to the current AutoHorizontalAlignment setting. Should be invoked whenever the horizontal alignment may be affected, i.e. on every modification of the content or its direction.