UIInputEvent
abstract class UIInputEvent<U extends UI>
Extends: UIEvent<U>
Implements: IConsumableEvent
Known subtypes: UICharEvent, UIKeyEvent, UIMouseEvent, UIMouseScrollEvent
Package: dev.joid.lib.ui.event.impl.ui · Module: core · Source: UIInputEvent.java
The base class of the input events of a UI, which a listener consumes to stop the input.
Description
Section titled “Description”The handleX listeners of a UI receive an input after its nodes, and only when no node consumed it.
The nodes and the UI share the same input: the event of the UI is the source of the events of its nodes.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| UIInputEvent(U ui) protected | Creates an input event for a UI, from the constructor of a subclass. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | consume() | Stops the input: no other listener except the MONITOR ones, no UI below and not the host application receive it. |
boolean | isConsumed() | If true, a node or a listener consumed the input. |
Creation details
Section titled “Creation details”UIInputEvent
Section titled “UIInputEvent”UIInputEvent(U ui) protected
Creates an input event for a UI, from the constructor of a subclass.
Method details
Section titled “Method details”consume
Section titled “consume”void consume()
Stops the input: no other listener except the MONITOR ones, no UI below and not the host application receive it.
Throws an IllegalStateException in a MONITOR listener.
isConsumed
Section titled “isConsumed”boolean isConsumed()
If true, a node or a listener consumed the input.
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
