Signals
The signals that hold a value the interface follows, the typed signals and collections, the derived signals computed from them, and the bindings that tie them to nodes and controls. Learn: Signals, Derived values, Rebuilding the tree, How signals work.
Main types
Section titled “Main types”| Type | Kind | Summary |
|---|---|---|
BooleanSignal | class | Signal of a boolean, for a state that is on or off. |
ComputedSignal | class | Read-only signal whose value comes from a function of other signals, computed again only after one of them changed. |
DoubleSignal | class | Signal of a double with arithmetic that writes its result, for positions, amounts and measures. |
FloatSignal | class | Signal of a float with arithmetic that writes its result, for ratios, progress and sizes. |
IntegerSignal | class | Signal of an int with arithmetic that writes its result, for counters, scores and indexes. |
InteractiveValue | class | Value of a node that both the code and the user change, with its bounds, its events and its two-way binding to a signal. |
ListSignal | class | Signal of a list, changed through its own methods so that every change notifies the nodes and listeners that follow it. |
LongSignal | class | Signal of a long with arithmetic that writes its result, for large counts, sizes and timestamps. |
MapSignal | class | Signal of a map that keeps the insertion order of its keys, changed through its own methods so that every change notifies its followers. |
NodeBindings | class | Signal bindings, followed suppliers, watches and queued events of one node or one UI. |
SetSignal | class | Signal of a set that keeps the insertion order, changed through its own methods so that every change notifies its followers. |
Signal | class | Holds a value that nodes, derived signals and listeners follow, so the interface shows each change without rebuilding. |
SignalContext | class | Per-thread state of the signal engine: batches, silence, read tracking and the queue of notifications. |
SignalReplay | class | Entry point of the replay that turns a plain value passed to a setter into a signal that follows the signals its expression read. |
SignalReplayBinding | class | Supplier that computes again, from bytecode, the argument of one setter call after the signals it read change. |
SignalReplayCall | class | One setter call in the code of the application: the line of the caller and the name of the setter. |
SignalReplayClass | class | Bytecode of one class of the application, read once for the replay, with the analyses of its methods. |
SignalReplayException | class | Reason why the replay cannot follow an expression, with the advice that the dev warning prints. |
SignalReplayFailure | enum | Kinds of expression that the replay cannot follow, each with its reason and its advice. |
SignalReplayFrame | class | Interpreter that runs the instructions of one expression of the bytecode with the current values of fields and signals. |
SignalReplayMatch | class | Result of matching one slice of bytecode against the value a setter received and the signals read before it. |
SignalReplayMethod | class | Analysis of one method of the bytecode: frames, instructions, local variables and the expressions that define them. |
SignalReplayParts | class | Text of a concatenation whose parts are known values and holes left by local variables. |
SignalReplayRun | class | One execution of a slice of bytecode, during the match or during a replay, with the signals it reads. |
SignalReplaySite | class | Every argument expression of one setter call on one line, analysed once and kept for the next replays. |
SignalReplaySlice | class | Instructions of the bytecode that compute one argument of a setter call. |
SignalReplayUnknown | class | Value that the replay cannot compute, such as a local variable whose value it does not know. |
StringSignal | class | Signal of a String with the text operations of String, which write their result. |
WatchProperty | interface | Action that Node.watch(...) runs on its node each time the watched signal changes. |
Supporting types
Section titled “Supporting types”Nested types and listeners that the main types use.
| Type | Kind | Summary |
|---|---|---|
SignalListener | interface | Receives the value of a signal after each change. |
