fx:bindContent markup extension, ${..x}

The fx:bindContent markup extension establishes a content binding. It can be set on any ReadOnlyListProperty, ReadOnlySetProperty, or ReadOnlyMapProperty instance, and is equivalent to invoking the ReadOnly{List/Set/Map}Property.bindContent(Observable{List/Set/Map}) API in Java code.

Its compact 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:bindContent path="myPath"/>
    </property>
<object>

<!-- Attribute notation -->
<object property="{fx:bindContent path=myPath}"/>

<!-- Attribute notation with omitted "path" -->
<object property="{fx:bindContent myPath}"/>

<!-- Compact notation -->
<object property="${..myPath}"/>