fx:bind markup extension, ${x}
The fx:bind markup extension establishes a unidirectional binding. It can be set on any javafx.beans.property.Property instance, and is equivalent to invoking the Property.bind(ObservableValue) API in Java code.
Its prefix notation is ${x}, where x is the binding path.
Properties
| Property | Description |
|---|---|
path | A string that specifies the binding path. This is the default property. |
Usage
<!-- Element notation -->
<object>
<property>
<fx:bind path="myPath"/>
</property>
<object>
<!-- Attribute notation -->
<object property="{fx:bind path=myPath}"/>
<!-- Attribute notation with omitted "path" -->
<object property="{fx:bind myPath}"/>
<!-- Prefix notation -->
<object property="${myPath}"/>