NodeScrollEvent.Pre
final class NodeScrollEvent.Pre<N extends Node>
Extends: NodeScrollEvent<N>
Implements: ICancellableEvent
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeScrollEvent.java
The event of beforeScroll, which can refuse a scroll of a node.
Description
Section titled “Description”It fires for a scroll that the wheel, a scrollbar or a call such as scrollTo(...) asks for.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
Pre<N> | create(N node, Axis axis, double previous, double offset) factory | Creates the event for a node, the axis, the offset now and the offset asked for. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | cancel() | Refuses the scroll: the content stays where it is. |
boolean | isCancelled() | If true, a listener refused the scroll. |
Inherited from NodeScrollEvent (3)
Creation details
Section titled “Creation details”create
Section titled “create”<N extends Node> Pre<N> create(N node, Axis axis, double previous, double offset) factory
Creates the event for a node, the axis, the offset now and the offset asked for.
Method details
Section titled “Method details”cancel
Section titled “cancel”void cancel()
Refuses the scroll: the content stays where it is.
Throws an IllegalStateException in a MONITOR listener.
isCancelled
Section titled “isCancelled”boolean isCancelled()
If true, a listener refused the scroll.
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
