Skip to content

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.

A refused start leaves the node in place; a refused drop sends it back to where the drag started.

ReturnsSignatureSummary
Pre<N>create(N node, Node target) factoryCreates the event for a dragged node and its drop target, or null for none.

ReturnsSignatureSummary
voidcancel()Refuses the start or the drop.
booleanisCancelled()If true, a listener refused the step.
Inherited from NodeDragEvent (1)

getTarget

Inherited from NodeEvent (1)

getNode

<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.

void cancel()

Refuses the start or the drop. Throws an IllegalStateException in a MONITOR listener.

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

Report a problem with this page