public static enum TabPane.TabDragPolicy extends java.lang.Enum<TabPane.TabDragPolicy>
Enum Constant and Description |
---|
FIXED
The tabs remain fixed in their positions and cannot be dragged.
|
REORDER
The tabs can be dragged to reorder them within the same TabPane.
|
Modifier and Type | Method and Description |
---|---|
static TabPane.TabDragPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TabPane.TabDragPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TabPane.TabDragPolicy FIXED
public static final TabPane.TabDragPolicy REORDER
After a tab is reordered, the tabs
list is
permuted to reflect the updated order.
A permutation
change
event is fired to indicate which tabs were reordered. This
reordering is done after the mouse button is released. While a tab
is being dragged, the list of tabs is unchanged.
public static TabPane.TabDragPolicy[] values()
for (TabPane.TabDragPolicy c : TabPane.TabDragPolicy.values()) System.out.println(c);
public static TabPane.TabDragPolicy 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