vaadin 8.1 tree right click context menu

In vaadin 7, i used addActionHandler(new Action.Handler() { … });
to assign right click context menu without using any extension.

Now in 8.1,the addActionHandler is gone, what are the options for right click menu now?

Thank you in advance!

I would advise to use the Vaadin ContextMenu addon:!addon/vaadin-contextmenu