Skip to content

NodeDragEvent

abstract class NodeDragEvent<N extends Node>
Extends: NodeEvent<N>
Known subtypes: NodeDragEvent.Pre, NodeDragEvent.Post
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeDragEvent.java

A step of the drag of a node, with its drop target, in a cancellable Pre and a Post.

Node.beforeDragStart and Node.beforeDragDrop receive a NodeDragEvent.Pre and can refuse the step; Node.onDragStart, Node.onDrag, Node.onDragDrop and Node.onDragSnap receive a NodeDragEvent.Post.

ReturnsSignatureSummary
NodegetTarget()Returns the node that the dragged node snaps to, for beforeDragDrop, onDragDrop and onDragSnap.
Inherited from NodeEvent (1)

getNode

Node getTarget()

Returns the node that the dragged node snaps to, for beforeDragDrop, onDragDrop and onDragSnap. null at the start and during the drag, and for a drop on no target.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page