public interface HasVerticalAlignment
The names of the static members of HasVerticalAlignment.VerticalAlignmentConstant
, as well
as simple alignment names (top
, middle
,
bottom
), can be used as values for a
verticalAlignment
attribute of any widget that implements this
interface. (In fact, this will work for any widget method that takes a single
VerticalAlignmentConstant value.)
For example,
<g:VerticalPanel verticalAlignment='ALIGN_BOTTOM' /> <g:VerticalPanel verticalAlignment='bottom' />
Modifier and Type | Interface and Description |
---|---|
static class |
HasVerticalAlignment.VerticalAlignmentConstant
Horizontal alignment constant.
|
Modifier and Type | Field and Description |
---|---|
static HasVerticalAlignment.VerticalAlignmentConstant |
ALIGN_BOTTOM
Specifies that the widget's contents should be aligned to the bottom.
|
static HasVerticalAlignment.VerticalAlignmentConstant |
ALIGN_MIDDLE
Specifies that the widget's contents should be aligned in the middle.
|
static HasVerticalAlignment.VerticalAlignmentConstant |
ALIGN_TOP
Specifies that the widget's contents should be aligned to the top.
|
Modifier and Type | Method and Description |
---|---|
HasVerticalAlignment.VerticalAlignmentConstant |
getVerticalAlignment()
Gets the vertical alignment.
|
void |
setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant align)
Sets the vertical alignment.
|
static final HasVerticalAlignment.VerticalAlignmentConstant ALIGN_BOTTOM
static final HasVerticalAlignment.VerticalAlignmentConstant ALIGN_MIDDLE
static final HasVerticalAlignment.VerticalAlignmentConstant ALIGN_TOP
HasVerticalAlignment.VerticalAlignmentConstant getVerticalAlignment()
void setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant align)
align
- the vertical alignment (
ALIGN_TOP
,
ALIGN_MIDDLE
, or
ALIGN_BOTTOM
).