public enum TabPlacement extends Enum<TabPlacement>
TabPane
(or a similar ui element).Enum Constant and Description |
---|
BOTTOM_OF_DOCKABLE
bottom side, horizontal
|
LEFT_OF_DOCKABLE
to the left, vertical
|
RIGHT_OF_DOCKABLE
to the right, vertical
|
TOP_OF_DOCKABLE
top side, horizontal
|
Modifier and Type | Method and Description |
---|---|
boolean |
isHorizontal()
Tells whether this side is a horizontal side.
|
boolean |
isVertical()
Tells whether this side is a vertical side.
|
DockTitle.Orientation |
toOrientation()
Transforms
this into an DockTitle.Orientation . |
static TabPlacement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TabPlacement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TabPlacement TOP_OF_DOCKABLE
public static final TabPlacement BOTTOM_OF_DOCKABLE
public static final TabPlacement LEFT_OF_DOCKABLE
public static final TabPlacement RIGHT_OF_DOCKABLE
public static TabPlacement[] values()
for (TabPlacement c : TabPlacement.values()) System.out.println(c);
public static TabPlacement 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 isHorizontal()
true
if TOP_OF_DOCKABLE
or BOTTOM_OF_DOCKABLE
public boolean isVertical()
true
if LEFT_OF_DOCKABLE
or RIGHT_OF_DOCKABLE
public DockTitle.Orientation toOrientation()
this
into an DockTitle.Orientation
.this