Methods not found while upgrading from Vaadin7 to Vaadin8

56 Views Asked by At

Update from vaadin 7.7.6 to vaadin 8.20.0

I am trying to upgrade my project from vaadin7 to vaadin8. I am not able to find the alternatives for below method.

In my existing code, below methods has been used :

ContextMenuItem item;
item.setData(data);
item.getData();

But since ContextMenuItem has been removed from vaadin8 and MenuBar.MenuItem has been provided, I could not find any similar method. I want to set data into the MenuItem, how this can be done? Are there any similar methods in import com.vaadin.ui.MenuBar.MenuItem;.

I want to achieve something like :

com.vaadin.contextmenu.MenuItem item;
item.setData(data);
item.getData()

TIA !

0

There are 0 best solutions below