Enum Constant and Description |
---|
BOTTOM
The location on the bottom side.
|
LEFT
The location on the left side.
|
RIGHT
The location on the right side.
|
TOP
The location on the top side.
|
Modifier and Type | Method and Description |
---|---|
abstract @NotNull javax.swing.AbstractButton |
createButton(@NotNull java.lang.String title)
Creates an
AbstractButton for this location. |
abstract int |
getAxis()
Returns the
BoxLayout axis of this location. |
abstract @NotNull java.lang.String |
getBorderLocation()
Returns the
BorderLayout constraint of this location. |
abstract @NotNull java.lang.String |
getBorderLocationAlternativeLocation()
Returns the
BorderLayout constraint of this location for buttons
in the alternative location. |
abstract @NotNull java.lang.String |
getBorderLocationStandardLocation()
Returns the
BorderLayout constraint of this location for buttons
in the standard location. |
abstract @NotNull java.lang.String |
getName()
Returns a name for building resource keys.
|
abstract int |
getSplitPaneOppositeOrientation()
Returns the opposite orientation for a
JSplitPane . |
abstract int |
getSplitPaneOrientation()
Returns the orientation for a
JSplitPane . |
abstract double |
getSplitPaneResizeWeight()
Returns the resize weight for a
JSplitPane . |
abstract boolean |
isTopOrBottom()
|
abstract boolean |
isTopOrLeft()
|
static Location |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Location[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Location TOP
public static final Location BOTTOM
public static final Location LEFT
public static final Location RIGHT
public static Location[] values()
for (Location c : Location.values()) System.out.println(c);
public static Location valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@NotNull public abstract @NotNull javax.swing.AbstractButton createButton(@NotNull @NotNull java.lang.String title)
AbstractButton
for this location.title
- the button's title@NotNull public abstract @NotNull java.lang.String getBorderLocation()
BorderLayout
constraint of this location.@NotNull public abstract @NotNull java.lang.String getBorderLocationStandardLocation()
BorderLayout
constraint of this location for buttons
in the standard location.@NotNull public abstract @NotNull java.lang.String getBorderLocationAlternativeLocation()
BorderLayout
constraint of this location for buttons
in the alternative location.public abstract int getAxis()
BoxLayout
axis of this location.public abstract int getSplitPaneOrientation()
JSplitPane
.public abstract int getSplitPaneOppositeOrientation()
JSplitPane
.public abstract double getSplitPaneResizeWeight()
JSplitPane
.public abstract boolean isTopOrLeft()
public abstract boolean isTopOrBottom()
@NotNull public abstract @NotNull java.lang.String getName()