file: Bindings.aus

class: Bindings

[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.

Methods

class: ConditionBuilder

[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.

Methods

class: When

[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).

Methods