|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AlignmentFlag>
eu.webtoolkit.jwt.AlignmentFlag
public enum AlignmentFlag
Enumeration that specifies a horizontal or a vertical alignment.
The vertical alignment flags are AlignBaseline, AlignSub, AlignSuper, AlignTop, AlignTextTop, AlignMiddle, AlignBottom and AlignTextBottom. The horizontal alignment flags are AlignLeft, AlignRight, AlignCenter and AlignJustify.
When used with setVerticalAlignment(), this applies only to inline widgets and determines how to position itself on the current line, with respect to sibling inline widgets.
When used with WContainerWidget#setContentAlignment(), this determines the vertical
alignment of contents within the table cell.
When used with
WPainter#drawText(), this determines the horizontal and vertical alignment
of the text with respect to the bounding rectangle.
When used with WContainerWidget#setContentAlignment(), this specifies how contents should
be aligned horizontally within the container.
Not all values are applicable in all situations. The most commonly used values are AlignLeft, AlignCenter, AlignRight, AlignBottom, AlignMiddle and AlignTop.
| Enum Constant Summary | |
|---|---|
AlignBaseline
Align at baseline (default alignment). |
|
AlignBottom
Align bottom of widget to the bottom of the lowest sigling widget. |
|
AlignCenter
Align horizontally in the center. |
|
AlignJustify
Justify left and right. |
|
AlignLeft
Align to the left. |
|
AlignLength
|
|
AlignMiddle
Align vertically the middle to the middle of the parent widget. |
|
AlignRight
Align to the right. |
|
AlignSub
Align below the baseline (as if subscript). |
|
AlignSuper
Align above the baseline (as if superscript). |
|
AlignTextBottom
Align bottom of widget to the bottom of parent widget's font. |
|
AlignTextTop
Align top of widget with the top of the parent widget's font. |
|
AlignTop
Align top of widget with top of tallest sibling widget. |
|
| Field Summary | |
|---|---|
static java.util.EnumSet<AlignmentFlag> |
AlignHorizontalMask
Combination of all horizontal alignment flags. |
static java.util.EnumSet<AlignmentFlag> |
AlignVerticalMask
Combination of all vertical alignment flags. |
| Method Summary | |
|---|---|
int |
getValue()
Returns the numerical representation of this enum. |
static AlignmentFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AlignmentFlag[] |
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 AlignmentFlag AlignLeft
public static final AlignmentFlag AlignRight
public static final AlignmentFlag AlignCenter
public static final AlignmentFlag AlignJustify
public static final AlignmentFlag AlignBaseline
public static final AlignmentFlag AlignSub
public static final AlignmentFlag AlignSuper
public static final AlignmentFlag AlignTop
public static final AlignmentFlag AlignTextTop
public static final AlignmentFlag AlignMiddle
public static final AlignmentFlag AlignBottom
public static final AlignmentFlag AlignTextBottom
public static final AlignmentFlag AlignLength
| Field Detail |
|---|
public static final java.util.EnumSet<AlignmentFlag> AlignHorizontalMask
public static final java.util.EnumSet<AlignmentFlag> AlignVerticalMask
| Method Detail |
|---|
public static AlignmentFlag[] values()
for (AlignmentFlag c : AlignmentFlag.values()) System.out.println(c);
public static AlignmentFlag valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic int getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||