Re: ComboBox: TestEditor to ListView binding

2014-07-07 Thread Werner Lehmann
Kirill, ControlsFX has support for this if a 3rd party lib is ok. With TextFields.createClearableTextField() you create a search field with an eraser icon to clear the text. And the AutoCompletionBinding applied to the textfield implements the auto complete dropdown. You only have to provide

Re: ComboBox: TestEditor to ListView binding

2014-07-07 Thread Kirill Kirichenko
I'm afraid in my project I will only allowed to use vanilla javafx only. It would be good if someone could write a blog of how to create a bare minimum combobox control with desired behaviour like I explained. Thanks for the reference. K On 07.07.2014 11:20, Werner Lehmann wrote: Kirill,

Re: ComboBox: TestEditor to ListView binding

2014-07-07 Thread Stephen F Northover
Hi Kirill, I looked at this again quickly and while there might be a combination of events and listeners that can make a combo box behave this way, you are better to create your own search box and manage the popup list. The reason for this is that any code you are likely to write that

ComboBox: TestEditor to ListView binding

2014-07-04 Thread Kirill Kirichenko
JavaFX ComboBox has binding between TextEdit field and the ListView selection such that edit field gets updated when we change the selected item in the drop down list. Is there a way to break this binding - when we select an item in the list the editor field remains untouched. Where should I

Re: ComboBox: TestEditor to ListView binding

2014-07-04 Thread Stephen F Northover
Hi Kirill, What exactly are you trying to do? The following (crap) listens for the value to change and then sets it back: ChangeListenerString l = new ChangeListenerString () { public void changed(ObservableValue observable, String oldValue, String

Re: ComboBox: TestEditor to ListView binding

2014-07-04 Thread Kirill Kirichenko
I'm implementing a searchbox. In the textfield of the combobox I'm typing a search string. textProperty of the editor has an onChange listener which forms a list of strings that contain the text as a substring. Then I set this list of strings as a content of the drop down list of the combobox.