Basics
Guides
API Reference
Basics
Guides
API Reference
[26:14] static extends: object
Static helper around javafx.beans.binding.Bindings. Only the
when(cond) entry point is exposed here, since that is the
one Aussom callers asked for to build conditional bindings
for UI properties. Returns a When wrapper that fluents into
.then(value).otherwise(value).
Use:
binding = Bindings.when(button.hoverProperty())
.then(redObservable)
.otherwise(blackObservable);
label.textFillProperty().bind(binding.obj);
The richer Bindings static surface (add, subtract,
multiply, divide, equal, notEqual, min, max, etc.)
is not wrapped yet; callers needing those can drop to
aji.invokeStaticRaw("javafx.beans.binding.Bindings", ...)
directly.
when (Condition)
Starts a conditional binding driven by a JavaFX ObservableBooleanValue. The returned
Whenwrapper supplies thethen(value)continuation.
Condition is an Aussom wrapper around an ObservableBooleanValue, or a raw AussomJavaObject.A new When wrapper.[100:7] extends: FxObj
Wraps the typed XxxConditionBuilder returned by
When.then(value) (NumberConditionBuilder,
BooleanConditionBuilder, StringConditionBuilder, or
ObjectConditionBuilder). Final step in the Bindings.when chain:
otherwise(value) returns the resulting Binding AJO.
ConditionBuilder ()
Empty default constructor; populated by
When.then.
adopt (object Ajo)
Wraps an existing XxxConditionBuilder AussomJavaObject.
Ajo is an AussomJavaObject around a JavaFX condition builder.A new ConditionBuilder wrapper.otherwise (Value)
Supplies the value used while the condition is false. Returns the final Binding AJO (NumberBinding / BooleanBinding / StringBinding / ObjectBinding
) which can be bound to a JavaFX Property via Property.bind(...).
Value is the on-false value or observable.An AussomJavaObject around the resulting Binding.[56:7] extends: FxObj
Wraps a javafx.beans.binding.When builder produced by
Bindings.when(cond). Use then(value) to pick the value
applied when the condition is true; the returned
ConditionBuilder then accepts the false-branch value via
otherwise(value).
When ()
Empty default constructor; populated by
Bindings.when.
adopt (object Ajo)
Wraps an existing
WhenAussomJavaObject.
Ajo is an AussomJavaObject around a When builder.A new When wrapper.then (Value)
Supplies the value used while the condition is true. JavaFX picks the matching typed builder (Number/Boolean/String/Object). The Value argument may be a primitive (int / double / bool / string), a JavaFX Observable AJO, or an Aussom wrapper whose
.objcarries one.
Value is the on-true value or observable.A new ConditionBuilder wrapper.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.