public static enum GridLayout.Alignment extends Enum<GridLayout.Alignment>
Enum Constant and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
static GridLayout.Alignment |
valueOf(String name)
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.
|
public static final GridLayout.Alignment BEGINNING
public static final GridLayout.Alignment CENTER
public static final GridLayout.Alignment END
public static final GridLayout.Alignment FILL
public static GridLayout.Alignment[] values()
for (GridLayout.Alignment c : GridLayout.Alignment.values()) System.out.println(c);
public static GridLayout.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 nameNullPointerException
- if the argument is nullCopyright © 2016. All rights reserved.