NodeReorderEvent
abstract class NodeReorderEvent<N extends Node>
Extends: NodeEvent<N>
Known subtypes: NodeReorderEvent.Pre, NodeReorderEvent.Post
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeReorderEvent.java
A move of a child in a reorderable list, with the child and its index before and after, in a cancellable Pre and a Post.
Description
Section titled “Description”ReorderableFlexNode fires onReorderStart when a drag starts, beforeReorder and onReorder each time the dragged child changes place, and onReorderEnd at the drop.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int | getIndex() | Returns the index of the child after the move. |
Node | getChild() | Returns the child that moves. |
int | getPrevious() | Returns the index of the child before the move. |
Method details
Section titled “Method details”getIndex
Section titled “getIndex”int getIndex()
Returns the index of the child after the move.
At onReorderEnd, the index where the child was dropped.
getChild
Section titled “getChild”Node getChild()
Returns the child that moves.
getPrevious
Section titled “getPrevious”int getPrevious()
Returns the index of the child before the move.
At onReorderEnd, the index where the drag started.
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
