# Uses of Class
javafx.scene.input.DragEvent

Packages that use DragEvent
Package
Description
javafx.scene
Provides the core set of base classes for the JavaFX Scene Graph API.
javafx.scene.input
Provides the set of classes for mouse and keyboard input event handling.

- ## Uses of DragEvent in javafx.scene

  Methods in javafx.scene that return types with arguments of type DragEvent
  Modifier and Type
  Method
  Description
  `final EventHandler<? super DragEvent>`
  Node.`getOnDragDone()`
  Gets the value of the property onDragDone.
  `final EventHandler<? super DragEvent>`
  Scene.`getOnDragDone()`
  Gets the value of the property onDragDone.
  `final EventHandler<? super DragEvent>`
  Node.`getOnDragDropped()`
  Gets the value of the property onDragDropped.
  `final EventHandler<? super DragEvent>`
  Scene.`getOnDragDropped()`
  Gets the value of the property onDragDropped.
  `final EventHandler<? super DragEvent>`
  Node.`getOnDragEntered()`
  Gets the value of the property onDragEntered.
  `final EventHandler<? super DragEvent>`
  Scene.`getOnDragEntered()`
  Gets the value of the property onDragEntered.
  `final EventHandler<? super DragEvent>`
  Node.`getOnDragExited()`
  Gets the value of the property onDragExited.
  `final EventHandler<? super DragEvent>`
  Scene.`getOnDragExited()`
  Gets the value of the property onDragExited.
  `final EventHandler<? super DragEvent>`
  Node.`getOnDragOver()`
  Gets the value of the property onDragOver.
  `final EventHandler<? super DragEvent>`
  Scene.`getOnDragOver()`
  Gets the value of the property onDragOver.
  `final ObjectProperty<EventHandler<? super DragEvent>>`
  Node.`onDragDoneProperty()`
  Defines a function to be called when this `Node` is a drag and drop gesture source after its data has been dropped on a drop target.
  `final ObjectProperty<EventHandler<? super DragEvent>>`
  Scene.`onDragDoneProperty()`
  Defines a function to be called when this `Scene` is a drag and drop gesture source after its data has been dropped on a drop target.
  `final ObjectProperty<EventHandler<? super DragEvent>>`
  Node.`onDragDroppedProperty()`
  Defines a function to be called when the mouse button is released on this `Node` during drag and drop gesture.
  `final ObjectProperty<EventHandler<? super DragEvent>>`
  Scene.`onDragDroppedProperty()`
  Defines a function to be called when the mouse button is released on this `Scene` during drag and drop gesture.
  `final ObjectProperty<EventHandler<? super DragEvent>>`
  Node.`onDragEnteredProperty()`
  Defines a function to be called when drag gesture enters this `Node`.
  `final ObjectProperty<EventHandler<? super DragEvent>>`
  Scene.`onDragEnteredProperty()`
  Defines a function to be called when drag gesture enters this `Scene`.
  `final ObjectProperty<EventHandler<? super DragEvent>>`
  Node.`onDragExitedProperty()`
  Defines a function to be called when drag gesture exits this `Node`.
  `final ObjectProperty<EventHandler<? super DragEvent>>`
  Scene.`onDragExitedProperty()`
  Defines a function to be called when drag gesture exits this `Scene`.
  `final ObjectProperty<EventHandler<? super DragEvent>>`
  Node.`onDragOverProperty()`
  Defines a function to be called when drag gesture progresses within this `Node`.
  `final ObjectProperty<EventHandler<? super DragEvent>>`
  Scene.`onDragOverProperty()`
  Defines a function to be called when drag gesture progresses within this `Scene`.
  Method parameters in javafx.scene with type arguments of type DragEvent
  Modifier and Type
  Method
  Description
  `final void`
  Node.`setOnDragDone(EventHandler<? super DragEvent> value)`
  Sets the value of the property onDragDone.
  `final void`
  Scene.`setOnDragDone(EventHandler<? super DragEvent> value)`
  Sets the value of the property onDragDone.
  `final void`
  Node.`setOnDragDropped(EventHandler<? super DragEvent> value)`
  Sets the value of the property onDragDropped.
  `final void`
  Scene.`setOnDragDropped(EventHandler<? super DragEvent> value)`
  Sets the value of the property onDragDropped.
  `final void`
  Node.`setOnDragEntered(EventHandler<? super DragEvent> value)`
  Sets the value of the property onDragEntered.
  `final void`
  Scene.`setOnDragEntered(EventHandler<? super DragEvent> value)`
  Sets the value of the property onDragEntered.
  `final void`
  Node.`setOnDragExited(EventHandler<? super DragEvent> value)`
  Sets the value of the property onDragExited.
  `final void`
  Scene.`setOnDragExited(EventHandler<? super DragEvent> value)`
  Sets the value of the property onDragExited.
  `final void`
  Node.`setOnDragOver(EventHandler<? super DragEvent> value)`
  Sets the value of the property onDragOver.
  `final void`
  Scene.`setOnDragOver(EventHandler<? super DragEvent> value)`
  Sets the value of the property onDragOver.

- ## Uses of DragEvent in javafx.scene.input

  Fields in javafx.scene.input with type parameters of type DragEvent
  Modifier and Type
  Field
  Description
  `static final EventType<DragEvent>`
  DragEvent.`ANY`
  Common supertype for all drag event types.
  `static final EventType<DragEvent>`
  DragEvent.`DRAG_DONE`
  This event occurs on drag-and-drop gesture source after its data has been dropped on a drop target.
  `static final EventType<DragEvent>`
  DragEvent.`DRAG_DROPPED`
  This event occurs when the mouse button is released during drag and drop gesture on a drop target.
  `static final EventType<DragEvent>`
  DragEvent.`DRAG_ENTERED`
  This event occurs when drag gesture enters a node.
  `static final EventType<DragEvent>`
  DragEvent.`DRAG_ENTERED_TARGET`
  This event occurs when drag gesture enters a node.
  `static final EventType<DragEvent>`
  DragEvent.`DRAG_EXITED`
  This event occurs when drag gesture exits a node.
  `static final EventType<DragEvent>`
  DragEvent.`DRAG_EXITED_TARGET`
  This event occurs when drag gesture exits a node.
  `static final EventType<DragEvent>`
  DragEvent.`DRAG_OVER`
  This event occurs when drag gesture progresses within this node.
  Methods in javafx.scene.input that return DragEvent
  Modifier and Type
  Method
  Description
  `DragEvent`
  DragEvent.`copyFor(Object newSource, EventTarget newTarget)`
  `DragEvent`
  DragEvent.`copyFor(Object source, EventTarget target, Object gestureSource, Object gestureTarget, EventType<DragEvent> eventType)`
  Creates a copy of the given drag event with the given fields substituted.
  `DragEvent`
  DragEvent.`copyFor(Object source, EventTarget target, EventType<DragEvent> type)`
  Creates a copy of the given drag event with the given fields substituted.
  Methods in javafx.scene.input that return types with arguments of type DragEvent
  Modifier and Type
  Method
  Description
  `EventType<DragEvent>`
  DragEvent.`getEventType()`
  Method parameters in javafx.scene.input with type arguments of type DragEvent
  Modifier and Type
  Method
  Description
  `DragEvent`
  DragEvent.`copyFor(Object source, EventTarget target, Object gestureSource, Object gestureTarget, EventType<DragEvent> eventType)`
  Creates a copy of the given drag event with the given fields substituted.
  `DragEvent`
  DragEvent.`copyFor(Object source, EventTarget target, EventType<DragEvent> type)`
  Creates a copy of the given drag event with the given fields substituted.
  Constructor parameters in javafx.scene.input with type arguments of type DragEvent
  Modifier
  Constructor
  Description
  ``
  `DragEvent(Object source, EventTarget target, EventType<DragEvent> eventType, Dragboard dragboard, double x, double y, double screenX, double screenY, TransferMode transferMode, Object gestureSource, Object gestureTarget, PickResult pickResult)`
  Constructs new DragEvent event.
  ``
  `DragEvent(EventType<DragEvent> eventType, Dragboard dragboard, double x, double y, double screenX, double screenY, TransferMode transferMode, Object gestureSource, Object gestureTarget, PickResult pickResult)`
  Constructs new DragEvent event with empty source and target.