public interface

HasVerticalAlignment

com.google.gwt.user.client.ui.HasVerticalAlignment
Known Indirect Subclasses

Class Overview

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' />
 

Summary

Nested Classes
class HasVerticalAlignment.VerticalAlignmentConstant Horizontal alignment constant. 
Fields
public static final HasVerticalAlignment.VerticalAlignmentConstant ALIGN_BOTTOM Specifies that the widget's contents should be aligned to the bottom.
public static final HasVerticalAlignment.VerticalAlignmentConstant ALIGN_MIDDLE Specifies that the widget's contents should be aligned in the middle.
public static final HasVerticalAlignment.VerticalAlignmentConstant ALIGN_TOP Specifies that the widget's contents should be aligned to the top.
Public Methods
abstract HasVerticalAlignment.VerticalAlignmentConstant getVerticalAlignment()
Gets the vertical alignment.
abstract void setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant align)
Sets the vertical alignment.

Fields

public static final HasVerticalAlignment.VerticalAlignmentConstant ALIGN_BOTTOM

Specifies that the widget's contents should be aligned to the bottom.

public static final HasVerticalAlignment.VerticalAlignmentConstant ALIGN_MIDDLE

Specifies that the widget's contents should be aligned in the middle.

public static final HasVerticalAlignment.VerticalAlignmentConstant ALIGN_TOP

Specifies that the widget's contents should be aligned to the top.

Public Methods

public abstract HasVerticalAlignment.VerticalAlignmentConstant getVerticalAlignment ()

Gets the vertical alignment.

Returns
  • the current vertical alignment.

public abstract void setVerticalAlignment (HasVerticalAlignment.VerticalAlignmentConstant align)

Sets the vertical alignment.

Parameters
align the vertical alignment ( ALIGN_TOP, ALIGN_MIDDLE, or ALIGN_BOTTOM).