ComboBox and bidirectional binding
987995Apr 14 2013 — edited Nov 7 2013Hi,
I implement a ComboBox where I load an ArrayList of Enums into it by using
this.getItems().addAll(getMYEnumEntries());
Within the enum I override the toString method, so all the items are displayed correct in my ComboBox .
My problem is, that I use JavaFX bidirectional binding ... and I find now snippet how to use it correct.
* My first question is...to which property must I bind the bean to the combobox that I get informed aboud a change of the value?
* My second questiion is...how must I implement the my Property Binding Class ?? Can I use the SimpleObjectProperty and override getValue() ... setValue() ?
best regards
wolfgang
Edited by: wschele on 14.04.2013 00:28