com.google.gwt.user.client.ui.HasAutoHorizontalAlignment |
Known Indirect Subclasses
DateLabel,
HTML,
InlineHTML,
InlineLabel,
Label,
LabelBase<T>,
NumberLabel<T extends Number>,
ValueLabel<T>
|
A widget that implements this interface can be configured to be aligned
according to its contents' direction, in addition to the static alignment
options offered by HasHorizontalAlignment
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ALIGN_CONTENT_END | Specifies that the widget's contents should be aligned right for LTR
content, left for RTL content, and if the content's direction is DEFAULT,
like ALIGN_LOCALE_END . |
||||||||||
ALIGN_CONTENT_START | Specifies that the widget's contents should be aligned left for LTR
content, right for RTL content, and if the content's direction is DEFAULT,
like ALIGN_LOCALE_START . |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.gwt.user.client.ui.HasHorizontalAlignment
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the horizontal auto-alignment setting.
| |||||||||||
Sets the horizontal alignment, allowing in addition to the "static"
HasHorizontalAlignment.HorizontalAlignmentConstant values, the
"automatic" HasHorizontalAlignment.AutoHorizontalAlignmentConstant
values that depend on the content direction. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.gwt.user.client.ui.HasHorizontalAlignment
|
Specifies that the widget's contents should be aligned right for LTR
content, left for RTL content, and if the content's direction is DEFAULT,
like ALIGN_LOCALE_END
.
Specifies that the widget's contents should be aligned left for LTR
content, right for RTL content, and if the content's direction is DEFAULT,
like ALIGN_LOCALE_START
.
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.
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.
autoHorizontalAlignment | the new automatic horizontal alignment policy |
---|