Package org.jdesktop.swingx
Enum Class JXCollapsiblePane.Direction
- All Implemented Interfaces:
Serializable
,Comparable<JXCollapsiblePane.Direction>
,java.lang.constant.Constable
- Enclosing class:
- JXCollapsiblePane
The direction defines how the collapsible pane will collapse. The
constant names were designed by choosing a fixed point and then
determining the collapsing direction from that fixed point. This means
RIGHT
expands to the right and this is probably the best
expansion for a component in BorderLayout.EAST
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the orientation for this direction.static JXCollapsiblePane.Direction
Returns the enum constant of this class with the specified name.static JXCollapsiblePane.Direction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT
Collapses left. Suitable forBorderLayout.WEST
. -
RIGHT
Collapses right. Suitable forBorderLayout.EAST
. -
UP
Collapses up. Suitable forBorderLayout.NORTH
. -
DOWN
Collapses down. Suitable forBorderLayout.SOUTH
. -
LEADING
Collapses toward the leading edge. Suitable forBorderLayout.LINE_START
. -
TRAILING
Collapses toward the trailing edge. Suitable forBorderLayout.LINE_END
. -
START
Collapses toward the starting edge. Suitable forBorderLayout.PAGE_START
. -
END
Collapses toward the ending edge. Suitable forBorderLayout.PAGE_END
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isVertical
public boolean isVertical()Gets the orientation for this direction.- Returns:
true
if the direction is vertical,false
otherwise
-