T- the type of the wrapped value
public interface Property<T> extends ReadOnlyProperty<T>, WritableValue<T>
|Modifier and Type||Method and Description|
Create a unidirection binding for this
Create a bidirectional binding between this
Can be used to check, if a
Remove the unidirectional binding for this
Remove a bidirectional binding between this
addListener, getValue, removeListener
void bind(ObservableValue<? extends T> observable)
Note that JavaFX has all the bind calls implemented through weak listeners. This means the bound property can be garbage collected and stopped from being updated.
observable- The observable this
Propertyshould be bound to.
Property. If the
Propertyis not bound, calling this method has no effect.
Propertyand another one. Bidirectional bindings exists independently of unidirectional bindings. So it is possible to add unidirectional binding to a property with bidirectional binding and vice-versa. However, this practice is discouraged.
It is possible to have multiple bidirectional bindings of one Property.
JavaFX bidirectional binding implementation use weak listeners. This means bidirectional binding does not prevent properties from being garbage collected.
Propertyand another one. If no bidirectional binding between the properties exists, calling this method has no effect. It is possible to unbind by a call on the second property. This code will work:
Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.