2

I've created TextField

TextField txtAutocomplete = new TextField();

and List of entities

List<Batch> list = BatchService.list();

and made it autocompletable using ControlsFX TextFields

AutoCompletionBinding<Batch> autoCompletionBinding = TextFields.bindAutoCompletion(txtAutocomplete, list);    

is there a way to retrieve a Batch object from autoCompletionBinding when user selects one?

latsha
  • 1,298
  • 1
  • 14
  • 22

1 Answers1

2

Did you have a look at AutoCompletionBinding.setOnAutoCompleted()?

You will get notified upon successful auto-completion with an AutoCompletionEvent.

eckig
  • 10,964
  • 4
  • 38
  • 52
  • Thank you for reply, Yes I did looked at AutoCompletionEvent but there is only notification about auto complete. – latsha Mar 03 '15 at 18:11
  • @latsha according to the JavaDocs this is the only event you will get. – eckig Mar 03 '15 at 20:02