1
DoubleProperty
とObjectProperty<Double>
の間に双方向バインドを作成する組み込み関数はありますか?一つの方向についてはObjectProperty <Double>とDoubleProperty間の双方向バインド
それは非常に簡単ですバインディング:
public void bindBidirectional(DoubleProperty doubleProperty, ObjectProperty<Double> doubleObjectProperty){
doubleProperty.bind(Bindings.createDoubleBinding(() -> doubleObjectProperty.get(), doubleObjectProperty));
}
しかしBindings.createDoubleBinging
戻りBinding
、ないProperty
以来、私は双方向の結合のためにそれを使用することはできません。
感謝を行うことができます:) –