Skip to content

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.

ReorderableFlexNode fires onReorderStart when a drag starts, beforeReorder and onReorder each time the dragged child changes place, and onReorderEnd at the drop.

ReturnsSignatureSummary
intgetIndex()Returns the index of the child after the move.
NodegetChild()Returns the child that moves.
intgetPrevious()Returns the index of the child before the move.
Inherited from NodeEvent (1)

getNode

int getIndex()

Returns the index of the child after the move. At onReorderEnd, the index where the child was dropped.

Node getChild()

Returns the child that moves.

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

Report a problem with this page