HasVerticalAlignment abstract class
Characteristic interface which indicates that a widget has an associated vertical alignment.
Use in UiBinder Templates
The names of the static members of {@link 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' />
abstract class HasVerticalAlignment {
/**
* Specifies that the widget's contents should be aligned to the bottom.
*/
static const VerticalAlignmentConstant ALIGN_BOTTOM = const VerticalAlignmentConstant("bottom");
/**
* Specifies that the widget's contents should be aligned in the middle.
*/
static const VerticalAlignmentConstant ALIGN_MIDDLE = const VerticalAlignmentConstant("middle");
/**
* Specifies that the widget's contents should be aligned to the top.
*/
static const VerticalAlignmentConstant ALIGN_TOP = const VerticalAlignmentConstant("top");
/**
* Gets the vertical alignment.
*
* @return the current vertical alignment.
*/
VerticalAlignmentConstant getVerticalAlignment();
/**
* Sets the vertical alignment.
*
* @param align the vertical alignment (
* {@link HasVerticalAlignment#ALIGN_TOP},
* {@link HasVerticalAlignment#ALIGN_MIDDLE}, or
* {@link HasVerticalAlignment#ALIGN_BOTTOM}).
*/
void setVerticalAlignment(VerticalAlignmentConstant align);
}
Subclasses
Static Properties
const VerticalAlignmentConstant ALIGN_BOTTOM #
Specifies that the widget's contents should be aligned to the bottom.
static const VerticalAlignmentConstant ALIGN_BOTTOM = const VerticalAlignmentConstant("bottom")
const VerticalAlignmentConstant ALIGN_MIDDLE #
Specifies that the widget's contents should be aligned in the middle.
static const VerticalAlignmentConstant ALIGN_MIDDLE = const VerticalAlignmentConstant("middle")
const VerticalAlignmentConstant ALIGN_TOP #
Specifies that the widget's contents should be aligned to the top.
static const VerticalAlignmentConstant ALIGN_TOP = const VerticalAlignmentConstant("top")
Methods
abstract VerticalAlignmentConstant getVerticalAlignment() #
Gets the vertical alignment.
@return the current vertical alignment.
abstract void setVerticalAlignment(VerticalAlignmentConstant align) #
Sets the vertical alignment.
@param align the vertical alignment (
{@link HasVerticalAlignment#ALIGN_TOP},
{@link HasVerticalAlignment#ALIGN_MIDDLE}, or
{@link HasVerticalAlignment#ALIGN_BOTTOM}).