Package com.google.gwt.user.client.ui
Interface HasVerticalAlignment
- All Known Subinterfaces:
HasAlignment
- All Known Implementing Classes:
Column
,DockPanel
,HorizontalPanel
,IdentityColumn
,TextColumn
,VerticalPanel
public interface HasVerticalAlignment
Characteristic interface which indicates that a widget has an associated
vertical alignment.
Use in UiBinder Templates
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' />
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Horizontal alignment constant. -
Field Summary
Modifier and TypeFieldDescriptionstatic final HasVerticalAlignment.VerticalAlignmentConstant
Specifies that the widget's contents should be aligned to the bottom.static final HasVerticalAlignment.VerticalAlignmentConstant
Specifies that the widget's contents should be aligned in the middle.static final HasVerticalAlignment.VerticalAlignmentConstant
Specifies that the widget's contents should be aligned to the top. -
Method Summary
Modifier and TypeMethodDescriptionGets the vertical alignment.void
Sets the vertical alignment.
-
Field Details
-
ALIGN_BOTTOM
Specifies that the widget's contents should be aligned to the bottom. -
ALIGN_MIDDLE
Specifies that the widget's contents should be aligned in the middle. -
ALIGN_TOP
Specifies that the widget's contents should be aligned to the top.
-
-
Method Details
-
getVerticalAlignment
HasVerticalAlignment.VerticalAlignmentConstant getVerticalAlignment()Gets the vertical alignment.- Returns:
- the current vertical alignment.
-
setVerticalAlignment
Sets the vertical alignment.- Parameters:
align
- the vertical alignment (ALIGN_TOP
,ALIGN_MIDDLE
, orALIGN_BOTTOM
).
-