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.
Description
Section titled “Description”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.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
Node | getTarget() | Returns the node that the dragged node snaps to, for beforeDragDrop, onDragDrop and onDragSnap. |
Method details
Section titled “Method details”getTarget
Section titled “getTarget”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
