Enum Class Flex.MainAlignment
- All Implemented Interfaces:
Serializable,Comparable<Flex.MainAlignment>,Constable
- Enclosing class:
Flex
START, END and SPACE_BETWEEN are logical: they name
where reading starts and ends, so on a Row they turn around with
LayoutDirection. This is what a caller almost always wants, and it is
why a dialog's button row needs no direction knowledge of its own.
LEFT and RIGHT are physical: they name a side of the box and
keep naming it whichever way the subtree reads. Reach for one when the placement is about
the box rather than about reading order — a resize grip, a debug strip, a control
that has to stay put beside something outside this row. On a Column the main axis
has no left, so LEFT behaves as START and RIGHT as END: a
name that means nothing there must still mean something predictable.
CENTER is the same number in both vocabularies and in both directions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCentred.Against the edge reading ends on.Against the box's left edge, whichever way the subtree reads.Against the box's right edge, whichever way the subtree reads.Leftovers split evenly between children, from the edge reading starts from.Against the edge reading starts from. -
Method Summary
Modifier and TypeMethodDescriptionstatic Flex.MainAlignmentReturns the enum constant of this class with the specified name.static Flex.MainAlignment[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START
Against the edge reading starts from. -
CENTER
Centred. -
END
Against the edge reading ends on. -
SPACE_BETWEEN
Leftovers split evenly between children, from the edge reading starts from. -
LEFT
Against the box's left edge, whichever way the subtree reads. -
RIGHT
Against the box's right edge, whichever way the subtree reads.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-