Table item selection listener..

I hava a table which supports multi-select.

I want to add listener to the table. When I select/cancel a item, the listener should be different.

I tried addItemClickListener but it is called whenever I click an item which doesn’t distinguish between select and cancel select.

I think what you are trying to do should be achievable by using addValueChangeListerner, since the value of the table is the selection.

If you change to use Grid instead, I would recommend trying SelectionEvent. This can be done by using addSelectionListener.