Java javafx.scene.input DragEvent fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.input DragEvent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.input DragEvent.

The text is from its open source code.

Field

EventTypeDRAG_ENTERED
This event occurs when drag gesture enters a node.
EventTypeDRAG_EXITED
This event occurs when drag gesture exits a node.

Method

voidacceptTransferModes(TransferMode... transferModes)
Accepts this DragEvent , choosing the transfer mode for the drop operation.
voidconsume()
Marks this Event as consumed.
TransferModegetAcceptedTransferMode()
Gets transfer mode accepted by potential target.
DragboardgetDragboard()
A dragboard that is available to transfer data.
ObjectgetGestureSource()
The source object of the drag and drop gesture.
doublegetSceneX()
Returns horizontal position of the event relative to the origin of the Scene that contains the DragEvent's source.
doublegetSceneY()
Returns vertical position of the event relative to the origin of the Scene that contains the DragEvent's source.
voidsetDropCompleted(boolean isTransferDone)
Indicates that transfer handling of this DragEvent was completed successfully during a DRAG_DROPPED event handler.