Skip to content

NodeReorderEvent.Pre

final class NodeReorderEvent.Pre<N extends Node>
Extends: NodeReorderEvent<N>
Implements: ICancellableEvent
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeReorderEvent.java

The event of beforeReorder, which can refuse a new place of the dragged child.

A refused move keeps the child at its place; the drag goes on.

ReturnsSignatureSummary
Pre<N>create(N node, Node child, int previous, int index) factoryCreates the event for a list, the dragged child, its index now and the index asked for.

ReturnsSignatureSummary
voidcancel()Refuses the move.
booleanisCancelled()If true, a listener refused the move.
Inherited from NodeReorderEvent (3)

getIndex · getChild · getPrevious

Inherited from NodeEvent (1)

getNode

<N extends Node> Pre<N> create(N node, Node child, int previous, int index) factory

Creates the event for a list, the dragged child, its index now and the index asked for.

void cancel()

Refuses the move. Throws an IllegalStateException in a MONITOR listener.

boolean isCancelled()

If true, a listener refused the move.


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