public static enum JXCollapsiblePane.Direction extends Enum<JXCollapsiblePane.Direction>
RIGHT
expands to the right and this is probably the best
expansion for a component in BorderLayout.EAST
.Enum Constant and Description |
---|
DOWN
Collapses down.
|
LEFT
Collapses left.
|
RIGHT
Collapses right.
|
UP
Collapses up.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isVertical()
Gets the orientation for this direction.
|
static JXCollapsiblePane.Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JXCollapsiblePane.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JXCollapsiblePane.Direction LEFT
BorderLayout.WEST
.public static final JXCollapsiblePane.Direction RIGHT
BorderLayout.EAST
.public static final JXCollapsiblePane.Direction UP
BorderLayout.NORTH
.public static final JXCollapsiblePane.Direction DOWN
BorderLayout.SOUTH
.public static JXCollapsiblePane.Direction[] values()
for (JXCollapsiblePane.Direction c : JXCollapsiblePane.Direction.values()) System.out.println(c);
public static JXCollapsiblePane.Direction 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 nullpublic boolean isVertical()
true
if the direction is vertical, false
otherwiseCopyright © 2014. All rights reserved.