I can bind a TextField
's text property to a DoubleProperty
, like this:
textField.textProperty().bindBidirectional(someDoubleProperty, new NumberStringConverter());
But what if my someDoubleProperty
is an instance of ReadOnlyDoubleProperty
instead of DoubleProperty
?
I am acutally not interested in a bidirectional binding. I use this method only because there is no such thing as
textField.textProperty().bind(someDoubleProperty, new NumberStringConverter());
Do I need to use listeners instead or is there a "binding-solution" for that as well?
Is there somthing like
textField.textProperty().bind(someDoubleProperty, new NumberStringConverter());
out there?