- All Implemented Interfaces:
Serializable
,Comparable<GridLayout.Alignment>
,java.lang.constant.Constable
- Enclosing class:
GridLayout
The enum is used to specify where in a grid cell a component should be placed, in the case that the preferred
size of the component is smaller than the space in the cell. This class will generally use two alignments, one
for horizontal and one for vertical.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlace the component at the start of the cell (horizontally or vertically) and leave whatever space is left after the preferred size empty.Place the component at the middle of the cell (horizontally or vertically) and leave the space before and after empty.Place the component at the end of the cell (horizontally or vertically) and leave whatever space is left before the preferred size empty.Force the component to be the same size as the table cell -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GridLayout.Alignment
Returns the enum constant of this type with the specified name.static GridLayout.Alignment[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BEGINNING
Place the component at the start of the cell (horizontally or vertically) and leave whatever space is left after the preferred size empty. -
CENTER
Place the component at the middle of the cell (horizontally or vertically) and leave the space before and after empty. -
END
Place the component at the end of the cell (horizontally or vertically) and leave whatever space is left before the preferred size empty. -
FILL
Force the component to be the same size as the table cell
-
-
Constructor Details
-
Alignment
private Alignment()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-