public interface HasHorizontalAlignment
 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>
| Modifier and Type | Interface and Description | 
|---|---|
| static class  | HasHorizontalAlignment.AutoHorizontalAlignmentConstantType for values defined and used in  HasAutoHorizontalAlignment. | 
| static class  | HasHorizontalAlignment.HorizontalAlignmentConstantPossible return values for  getHorizontalAlignment(), and parameter
 values forsetHorizontalAlignment(com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant). | 
| Modifier and Type | Field and Description | 
|---|---|
| static HasHorizontalAlignment.HorizontalAlignmentConstant | ALIGN_CENTERSpecifies that the widget's contents should be aligned in the center. | 
| static HasHorizontalAlignment.HorizontalAlignmentConstant | ALIGN_DEFAULTSynonym of  ALIGN_LOCALE_START. | 
| static HasHorizontalAlignment.HorizontalAlignmentConstant | ALIGN_JUSTIFYSpecifies that the widget's contents should be aligned as justify. | 
| static HasHorizontalAlignment.HorizontalAlignmentConstant | ALIGN_LEFTSpecifies that the widget's contents should be aligned to the left. | 
| static HasHorizontalAlignment.HorizontalAlignmentConstant | ALIGN_LOCALE_ENDIn a RTL layout, specifies that the widget's contents should be aligned to
 the left. | 
| static HasHorizontalAlignment.HorizontalAlignmentConstant | ALIGN_LOCALE_STARTIn a RTL layout, specifies that the widget's contents should be aligned to
 the right. | 
| static HasHorizontalAlignment.HorizontalAlignmentConstant | ALIGN_RIGHTSpecifies that the widget's contents should be aligned to the right. | 
| Modifier and Type | Method and Description | 
|---|---|
| HasHorizontalAlignment.HorizontalAlignmentConstant | getHorizontalAlignment()Gets the horizontal alignment. | 
| void | setHorizontalAlignment(HasHorizontalAlignment.HorizontalAlignmentConstant align)Sets the horizontal alignment. | 
static final HasHorizontalAlignment.HorizontalAlignmentConstant ALIGN_CENTER
static final HasHorizontalAlignment.HorizontalAlignmentConstant ALIGN_JUSTIFY
static final HasHorizontalAlignment.HorizontalAlignmentConstant ALIGN_LEFT
static final HasHorizontalAlignment.HorizontalAlignmentConstant ALIGN_RIGHT
static final HasHorizontalAlignment.HorizontalAlignmentConstant ALIGN_LOCALE_START
static final HasHorizontalAlignment.HorizontalAlignmentConstant ALIGN_LOCALE_END
static final HasHorizontalAlignment.HorizontalAlignmentConstant ALIGN_DEFAULT
ALIGN_LOCALE_START.HasHorizontalAlignment.HorizontalAlignmentConstant getHorizontalAlignment()
ALIGN_LEFT,
         ALIGN_CENTER,
         ALIGN_RIGHT,
         ALIGN_JUSTIFY, or
         null).void setHorizontalAlignment(HasHorizontalAlignment.HorizontalAlignmentConstant align)
 Use null to clear horizontal alignment, 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).