|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Alignment>
com.maryanovsky.gwtutils.client.ui.Alignment
public enum Alignment
Convenient constants for placement to be used instead of a pair of alignment constants.
Enum Constant Summary | |
---|---|
BOTTOM_CENTER
|
|
BOTTOM_LEFT
|
|
BOTTOM_RIGHT
|
|
CENTER
|
|
MIDDLE_LEFT
|
|
MIDDLE_RIGHT
|
|
TOP_CENTER
|
|
TOP_LEFT
|
|
TOP_RIGHT
|
Method Summary | |
---|---|
HasHorizontalAlignment.HorizontalAlignmentConstant |
getHorizontalAlignment()
Returns the horizontal alignment constant. |
static Alignment |
getInstance(HasHorizontalAlignment.HorizontalAlignmentConstant horizontalAlignment,
HasVerticalAlignment.VerticalAlignmentConstant verticalAlignment)
Returns the Alignment |
HasVerticalAlignment.VerticalAlignmentConstant |
getVerticalAlignment()
Returns the vertical alignment constant. |
static Alignment |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Alignment[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Alignment TOP_LEFT
public static final Alignment TOP_CENTER
public static final Alignment TOP_RIGHT
public static final Alignment MIDDLE_LEFT
public static final Alignment CENTER
public static final Alignment MIDDLE_RIGHT
public static final Alignment BOTTOM_LEFT
public static final Alignment BOTTOM_CENTER
public static final Alignment BOTTOM_RIGHT
Method Detail |
---|
public static Alignment[] values()
for (Alignment c : Alignment.values()) System.out.println(c);
public static Alignment valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static Alignment getInstance(HasHorizontalAlignment.HorizontalAlignmentConstant horizontalAlignment, HasVerticalAlignment.VerticalAlignmentConstant verticalAlignment)
public HasHorizontalAlignment.HorizontalAlignmentConstant getHorizontalAlignment()
public HasVerticalAlignment.VerticalAlignmentConstant getVerticalAlignment()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |