NodeWatchEvent
final class NodeWatchEvent<N extends Node>
Extends: NodeEvent<N>
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeWatchEvent.java
The event of onWatch, which fires after a watch of a node applied its properties.
Description
Section titled “Description”Node.watch applies its properties each time its signal changes, then fires Node.onWatch.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
NodeWatchEvent<N> | create(N node, Object value, WatchProperty… properties) factory | Creates the event for a node, the value of the watched signal and the properties applied. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
Object | getValue() | Returns the value of the watched signal after the change. |
List<WatchProperty> | getProperties() | Returns the properties that the watch applied, as a read-only list. |
Creation details
Section titled “Creation details”create
Section titled “create”<N extends Node> NodeWatchEvent<N> create(N node, Object value, WatchProperty... properties) factory
Creates the event for a node, the value of the watched signal and the properties applied.
Method details
Section titled “Method details”getValue
Section titled “getValue”Object getValue()
Returns the value of the watched signal after the change.
getProperties
Section titled “getProperties”List<WatchProperty> getProperties()
Returns the properties that the watch applied, as a read-only list.
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
