public enum PanelLayout extends Enum<PanelLayout>
Enum Constant and Description |
---|
HORIZONTAL
This value for type lays out the elements horizontally with their alignment property dictating their alignment on the Y-axis.
|
VERTICAL
This value for type lays out the elements vertically with their alignment property dictating their alignment on the X-axis.
|
Modifier and Type | Method and Description |
---|---|
static PanelLayout |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PanelLayout[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PanelLayout VERTICAL
public static final PanelLayout HORIZONTAL
public static PanelLayout[] values()
for (PanelLayout c : PanelLayout.values()) System.out.println(c);
public static PanelLayout 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 null