Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT Listbox Multi Select

Tags:

java

gwt

I need to add a listbox / combobox which allows the user to choose several values.

I know there is one already available in the GWT API ListBox with isMultipleSelect() set to true. But I am not getting any direct way to get all selected reocrds from list box.

Some tutorials on google are sugeesting implement ChangeHandler's onChangemethod.

I think there should be some other way.

Any pointers would be appreciated.

like image 524
Hardik Mishra Avatar asked Jun 28 '26 12:06

Hardik Mishra


1 Answers

You can go through the items in the ListBox and call isItemSelected(int) to see if that item is selected.

like image 144
Zoltan Balazs Avatar answered Jul 01 '26 01:07

Zoltan Balazs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!