fx:bindContentBidirectional markup extension, #{..x}
The fx:bindContentBidirectional
markup extension establishes a bidirectional content binding. It can be set on any ReadOnlyListProperty
, ReadOnlySetProperty
, or ReadOnlyMapProperty
instance, and is equivalent to invoking the ReadOnly{List/Set/Map}Property.bindContentBidirectional(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:bindContentBidirectional path="myPath"/>
</property>
<object>
<!-- Attribute notation -->
<object property="{fx:bindContentBidirectional path=myPath}"/>
<!-- Attribute notation with omitted "path" -->
<object property="{fx:bindContentBidirectional myPath}"/>
<!-- Compact notation -->
<object property="#{..myPath}"/>