HasAlignment abstract class
A widget that implements this interface has an intrinsic alignment which can be manipulated using these methods and constants.
abstract class HasAlignment implements HasHorizontalAlignment, HasVerticalAlignment { }
Subclasses
DockPanel, HorizontalPanel, VerticalPanel
Implements
HasVerticalAlignment, HasHorizontalAlignment
Methods
abstract HorizontalAlignmentConstant getHorizontalAlignment() #
inherited from HasHorizontalAlignment
Gets the horizontal alignment.
@return the current horizontal alignment (
{@link HasHorizontalAlignment#ALIGN_LEFT},
{@link HasHorizontalAlignment#ALIGN_CENTER},
{@link HasHorizontalAlignment#ALIGN_RIGHT},
{@link HasHorizontalAlignment#ALIGN_JUSTIFY}, or
null).
abstract VerticalAlignmentConstant getVerticalAlignment() #
inherited from HasVerticalAlignment
Gets the vertical alignment.
@return the current vertical alignment.
abstract void setHorizontalAlignment(HorizontalAlignmentConstant align) #
inherited from HasHorizontalAlignment
Sets the horizontal alignment. <p> Use {@code null} to clear horizontal alignment, allowing it to be determined by the standard HTML mechanisms such as inheritance and CSS rules.
@param align the horizontal alignment (
{@link HasHorizontalAlignment#ALIGN_LEFT},
{@link HasHorizontalAlignment#ALIGN_CENTER},
{@link HasHorizontalAlignment#ALIGN_RIGHT},
{@link HasHorizontalAlignment#ALIGN_JUSTIFY},
{@link HasHorizontalAlignment#ALIGN_LOCALE_START}, or
{@link HasHorizontalAlignment#ALIGN_LOCALE_END}).
abstract void setVerticalAlignment(VerticalAlignmentConstant align) #
inherited from HasVerticalAlignment
Sets the vertical alignment.
@param align the vertical alignment (
{@link HasVerticalAlignment#ALIGN_TOP},
{@link HasVerticalAlignment#ALIGN_MIDDLE}, or
{@link HasVerticalAlignment#ALIGN_BOTTOM}).