Skip to content

Events

The events that listeners receive, with the bus, the types and the priorities that order the listeners of a node or a UI. Learn: Events, Node lifecycle.

TypeKindSummary
EventclassThe base class of every event that a listener receives.
NodeAnimateEventclassThe event of onAnimate, with the animator of a node and the value it reached on this frame.
NodeChangeEventclassThe change of a value of a node, with the value before and the value after, in a cancellable Pre and a Post.
NodeCharEventclassThe event of handleCharTyped on a node, with one typed character as a Unicode code point.
NodeChildEventclassThe event of onChildAppend, with the child added to a node.
NodeDragEventclassA step of the drag of a node, with its drop target, in a cancellable Pre and a Post.
NodeDrawEventclassThe event of onDraw and onRender, with the position of the pointer on the frame being drawn.
NodeEventclassAn event about a node, and the event of the node events that carry nothing else, such as onInit or onDetach.
NodeFieldChangeEventclassThe change of the text of a field, with the text before and after and the value read from it, in a cancellable Pre and a Post.
NodeHoverEventclassThe event of onHoverStart, onHover and onHoverEnd, with the position of the pointer.
NodeInputEventclassThe base class of the input events of a node, which a listener consumes to stop the input.
NodeKeyEventclassThe event of handleKeyPressed and handleKeyReleased on a node, with the key that the layout names and its place on the keyboard.
NodeMouseEventclassThe event of a press, a release, a drag or a click on a node, with the position of the pointer and the button.
NodeMouseScrollEventclassThe event of handleMouseScroll on a node, with the position of the pointer and the turn of the wheel.
NodeProgressEventclassThe event of onProgress on a resource player, with the progress of the playback.
NodeReorderEventclassA move of a child in a reorderable list, with the child and its index before and after, in a cancellable Pre and a Post.
NodeScrollEventclassA change of the scroll of a node on one axis, with the offset before and after, in a cancellable Pre and a Post.
NodeWatchEventclassThe event of onWatch, which fires after a watch of a node applied its properties.
UIChangeEventclassThe change of a value of a UI, with the value before and the value after, in a cancellable Pre and a Post.
UICharEventclassThe event of handleCharTyped on a UI, with one typed character that no node consumed, as a Unicode code point.
UICloseEventclassThe closing of a UI, in a cancellable Pre before it starts and a Post once the UI is closed.
UIEventclassThe base class of the events about a UI, such as its input or its closing.
UIInputEventclassThe base class of the input events of a UI, which a listener consumes to stop the input.
UIKeyEventclassThe event of handleKeyPressed and handleKeyReleased on a UI, with the key that the layout names and its place on the keyboard.
UIMouseEventclassThe event of a press, a release or a drag on a UI, with the position of the pointer and the button.
UIMouseScrollEventclassThe event of handleMouseScroll on a UI, with the position of the pointer and the turn of the wheel that no node consumed.

The interfaces, enums and helper classes of this family that the main types use.

TypeKindSummary
EventBusclassHolds the listeners of an object, one ordered list per event type, and runs them when an event fires.
EventPriorityenumThe order in which the listeners of one event run, from HIGHEST to LOWEST, then MONITOR.
EventTypeclassThe key of one kind of event in an event bus, such as the click of a node.
ICancellableEventinterfaceAn event that a listener cancels to refuse the change it announces.
IConsumableEventinterfaceAn input event that a listener consumes to stop it.

Nested types and listeners that the main types use.

TypeKindSummary
EventListenerinterfaceA function that JOID calls with an event, written as a lambda, with a priority that orders it among the other listeners.
NodeChangeEvent.PostclassThe event of an onX listener of a node, which fires once a value changed.
NodeChangeEvent.PreclassThe event of a beforeX listener of a node, which can refuse the change it announces.
NodeDragEvent.PostclassThe event of onDragStart, onDrag, onDragDrop and onDragSnap, which fires once a step of a drag happened.
NodeDragEvent.PreclassThe event of beforeDragStart and beforeDragDrop, which can refuse the start or the drop of a drag.
NodeFieldChangeEvent.PostclassThe event of onChange on a field, which fires once its text changed.
NodeFieldChangeEvent.PreclassThe event of beforeChange on a field, which can refuse an edit.
NodeReorderEvent.PostclassThe event of onReorderStart, onReorder and onReorderEnd, which fires once a step of a reorder happened.
NodeReorderEvent.PreclassThe event of beforeReorder, which can refuse a new place of the dragged child.
NodeScrollEvent.PostclassThe event of onScroll, onScrollToEnd and onScrollEndReached, which fires once a node scrolled.
NodeScrollEvent.PreclassThe event of beforeScroll, which can refuse a scroll of a node.
UIChangeEvent.PostclassThe event of an onX listener of a UI, which fires once a value of the UI changed.
UIChangeEvent.PreclassThe event of a beforeX listener of a UI, which can refuse the change it announces.
UICloseEvent.PostclassThe event of onClose, which fires once a UI is closed.
UICloseEvent.PreclassThe event of beforeClose, which can keep a UI open.

Report a problem with this page