Right click menu on the grid - Handler#getActions() is called for every row

Hello,
I noticed that after registering new Handler via Table#addActionHandler() its getActions() method is called for every row of the grid.
Is this a design decision or is it somehow necessary?

On the first sight it looks like it would be enough to call it just on mouse (right) click just for clicked row…

When you have lots of rows and complicated getActions() method it can get really slow.

This is how it works. The actions of a row are determined when a row is painted. Maybe you could try to use the
ContextMenu
add-on.

Ok,
Thanks for the answer.