Interface HasHorizontalAlignment

All Known Subinterfaces:
HasAlignment, HasAutoHorizontalAlignment
All Known Implementing Classes:
Anchor, Column, DateLabel, DialogBox.CaptionImpl, DockPanel, HorizontalPanel, HTML, IdentityColumn, InlineHTML, InlineLabel, Label, LabelBase, NumberLabel, TextColumn, ValueLabel, VerticalPanel

public interface HasHorizontalAlignment
Characteristic interface which indicates that a widget can be aligned horizontally.

Use in UiBinder Templates

The names of the static members of HasHorizontalAlignment.HorizontalAlignmentConstant, as well as simple alignment names (left, center, right, justify), can be used as values for a horizontalAlignment attribute of any widget that implements this interface. (In fact, this will work for any widget method that takes a single HorizontalAlignmentConstant value.)

For example,

 <g:Label horizontalAlignment='ALIGN_RIGHT'>Hi there.</g:Label>
 <g:Label horizontalAlignment='right'>Hi there.</g:Label>