« Return to Thread: [Trinidad] Problems with tr:table SelectionEvent

Re: [Trinidad] Problems with tr:table SelectionEvent

by Marco Grimm :: Rate this Message:

Reply to Author | View in Thread

Did you have a look at the SelectionEvent? It (or exactly: its super class) has methods "getAddedSet()" and "getRemovedSet()". Maybe you can check whether the size of the set is > 1 and can infer by that, whether only one item was checked/unchecked or 'select one' or 'select none' was clicked.

Regards, Marco

Rafa Pérez wrote:
I need to distinguish between a SelectionEvent delivered when a checkbox is
ckecked or when 'Select all' or 'Select None' is clicked. I have been
looking into the code and the examples but have not found anything yet (I am
surprised that nobody ever needed this feature...).

 « Return to Thread: [Trinidad] Problems with tr:table SelectionEvent