DragEvent

scalafx.scene.input.DragEvent
See theDragEvent companion object
class DragEvent(val delegate: DragEvent) extends InputEvent, SFXDelegate[DragEvent]

Attributes

Companion
object
Graph
Supertypes
class InputEvent
class Event
trait SFXDelegate[DragEvent]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def acceptTransferModes(transferModes: TransferMode*): Unit

Accepts this DragEvent, choosing the transfer mode for the drop operation.

Accepts this DragEvent, choosing the transfer mode for the drop operation.

Attributes

def acceptTransferModes(transferModes: Array[TransferMode]): Unit

Accepts this DragEvent, choosing the transfer mode for the drop operation.

Accepts this DragEvent, choosing the transfer mode for the drop operation.

Attributes

Indicates if this event has been accepted.

Indicates if this event has been accepted.

Attributes

Gets transfer mode accepted by potential target.

Gets transfer mode accepted by potential target.

Attributes

A dragboard that is available to transfer data.

A dragboard that is available to transfer data.

Attributes

Whether setDropCompleted(true) has been called on this event.

Whether setDropCompleted(true) has been called on this event.

Attributes

def dropCompleted_=(isTransferDone: Boolean): Unit

Indicates that transfer handling of this DragEvent was completed successfully during a DRAG_DROPPED event handler.

Indicates that transfer handling of this DragEvent was completed successfully during a DRAG_DROPPED event handler.

Attributes

def gestureSource: Object

The source object of the drag and drop gesture.

The source object of the drag and drop gesture.

Attributes

def gestureTarget: Object

The target object of the drag and drop gesture.

The target object of the drag and drop gesture.

Attributes

def sceneX: Double

Returns horizontal position of the event relative to the origin of the Scene that contains the DragEvent's source.

Returns horizontal position of the event relative to the origin of the Scene that contains the DragEvent's source.

Attributes

def sceneY: Double

Returns vertical position of the event relative to the origin of the Scene that contains the DragEvent's source.

Returns vertical position of the event relative to the origin of the Scene that contains the DragEvent's source.

Attributes

Returns absolute horizontal position of the event.

Returns absolute horizontal position of the event.

Attributes

Returns absolute vertical position of the event.

Returns absolute vertical position of the event.

Attributes

Data transfer mode.

Data transfer mode.

Attributes

def x: Double

Horizontal position of the event relative to the origin of the DragEvent's source.

Horizontal position of the event relative to the origin of the DragEvent's source.

Attributes

def y: Double

Vertical position of the event relative to the origin of the DragEvent's source.

Vertical position of the event relative to the origin of the DragEvent's source.

Attributes

Inherited methods

def consume(): Unit

Marks this Event as consumed. This stops its further propagation.

Marks this Event as consumed. This stops its further propagation.

Attributes

Inherited from:
Event

Indicates whether this Event has been consumed by any filter or handler.

Indicates whether this Event has been consumed by any filter or handler.

Attributes

Inherited from:
Event
def copyFor(newSource: AnyRef, newTarget: EventTarget): Event

Creates and returns a copy of this event with the specified event source and target.

Creates and returns a copy of this event with the specified event source and target.

Attributes

Inherited from:
Event
override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value parameters

ref

Object to be compared.

Attributes

Returns

if the other object is equals to this delegate or not.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def eventType: EventType[_ <: Event]

Gets the event type of this event.

Gets the event type of this event.

Attributes

Inherited from:
Event
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def source: Object

Returns the object on which the Event initially occurred.

Returns the object on which the Event initially occurred.

Attributes

Inherited from:
Event
def target: EventTarget

Returns the event target of this event.

Returns the event target of this event.

Attributes

Inherited from:
Event
override def toString: String

Attributes

Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: DragEvent

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes