I need to convert some properties that hold poin-v...
# tornadofx
i
I need to convert some properties that hold poin-values to millimeters/inches or other units, and and allow the user to edit these. Is there by chance any sort of bi-directional binding with a converter in tornadoFX? https://stackoverflow.com/questions/57216415/javafx-bind-number-bidirectional-with-add-multiply (- otherwise i'd just implement this myself)
b
tornadoFX is a lightweight JavaFX adaptation framework for kotlin. Everything that is possible in javafx is possible in tarndofx as well.
i
That is a very generic answer, but it doesnt answer the question. I was asking, wether tornadofx does have a bi-directional binding with a converter. I assume it does not, so i implemented a concise Kotlin Version of the suggested in the linked stackoverflow post. If tornadoFX already had one, i would have preferred the TFX implementation over mine though.
b
Sorry, I did not immediately understand what the question was. Yes, there is no own implementation. Maybe there are libraries of JavaFX itself
👍 1