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.
Description
Section titled “Description”A refused move keeps the child at its place; the drag goes on.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
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. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | cancel() | Refuses the move. |
boolean | isCancelled() | If true, a listener refused the move. |
Inherited from NodeReorderEvent (3)
Creation details
Section titled “Creation details”create
Section titled “create”<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.
Method details
Section titled “Method details”cancel
Section titled “cancel”void cancel()
Refuses the move.
Throws an IllegalStateException in a MONITOR listener.
isCancelled
Section titled “isCancelled”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
