public class TabUtil extends Object
Modifier and Type | Field and Description |
---|---|
static javafx.scene.input.DataFormat |
TAB_TYPE
Clipboard data format for draggable tabs.
|
Constructor and Description |
---|
TabUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
makeDraggable(javafx.scene.control.Tab tab)
Makes the specified tab draggable.
|
static void |
makeDroppable(javafx.scene.control.TabPane tabPane)
Makes the specified
TabPane a drag target for draggable tabs from makeDraggable(Tab) . |
static javafx.scene.control.Tab |
newDraggableTab(String label)
Helper method to create a new tab with the given label and make it draggable with
makeDraggable(javafx.scene.control.Tab) . |
public static final javafx.scene.input.DataFormat TAB_TYPE
public static javafx.scene.control.Tab newDraggableTab(String label)
makeDraggable(javafx.scene.control.Tab)
.public static void makeDraggable(javafx.scene.control.Tab tab)
TabPane
set up by makeDroppable(TabPane)
.
setOnDragDetected on the tab's graphic is called to handle the event.public static void makeDroppable(javafx.scene.control.TabPane tabPane)
TabPane
a drag target for draggable tabs from makeDraggable(Tab)
.
setOnDragOver and setOnDragDropped are called on the pane to handle the event.Copyright © 2013–2016 Jason Winnebeck. All rights reserved.