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.
|
END
Collapses toward the ending edge.
|
LEADING
Collapses toward the leading edge.
|
LEFT
Collapses left.
|
RIGHT
Collapses right.
|
START
Collapses toward the starting edge.
|
TRAILING
Collapses toward the trailing edge.
|
UP
Collapses up.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
vertical |
Modifier and Type | Method and Description |
---|---|
(package private) JXCollapsiblePane.Direction |
getFixedDirection(ComponentOrientation co)
Gets the fixed direction equivalent to this direction for the specified orientation.
|
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 final JXCollapsiblePane.Direction LEADING
BorderLayout.LINE_START
.public static final JXCollapsiblePane.Direction TRAILING
BorderLayout.LINE_END
.public static final JXCollapsiblePane.Direction START
BorderLayout.PAGE_START
.public static final JXCollapsiblePane.Direction END
BorderLayout.PAGE_END
.private final boolean vertical
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
otherwiseJXCollapsiblePane.Direction getFixedDirection(ComponentOrientation co)
co
- the component's orientationWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses