public final class DragUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
getData(javafx.scene.input.Dragboard dragboard,
javafx.scene.input.DataFormat format)
Gets data from a dragboard for the given format, casting it as necessary.
|
public static <T> T getData(javafx.scene.input.Dragboard dragboard, javafx.scene.input.DataFormat format)
T
- the expected type of the datadragboard
- the dragboard to get data fromformat
- the data format to get the data forjava.lang.ClassCastException
- if the content in the dragboard for the data format is not of type T