NodeDragEvent.Pre
final class NodeDragEvent.Pre<N extends Node>
Extends: NodeDragEvent<N>
Implements: ICancellableEvent
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeDragEvent.java
The event of beforeDragStart and beforeDragDrop, which can refuse the start or the drop of a drag.
Description
Section titled “Description”A refused start leaves the node in place; a refused drop sends it back to where the drag started.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
Pre<N> | create(N node, Node target) factory | Creates the event for a dragged node and its drop target, or null for none. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | cancel() | Refuses the start or the drop. |
boolean | isCancelled() | If true, a listener refused the step. |
Inherited from NodeDragEvent (1)
Creation details
Section titled “Creation details”create
Section titled “create”<N extends Node> Pre<N> create(N node, Node target) factory
Creates the event for a dragged node and its drop target, or null for none.
Method details
Section titled “Method details”cancel
Section titled “cancel”void cancel()
Refuses the start or the drop.
Throws an IllegalStateException in a MONITOR listener.
isCancelled
Section titled “isCancelled”boolean isCancelled()
If true, a listener refused the step.
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
