Hello, i have add ContextMenu for ordinary button. Is there way to set up listener on vaadin’s button? Example :
Table table = new Table(); table.addItemClickListener(new ItemClickEvent.ItemClickListener(){
@Override public void itemClick(ItemClickEvent event) { //todo something }
});
Are you perhaps looking for a context menu for a Vaadin Table, as in right-click? You can obtain that information from ItemClickEvent: just do event.getButton() == MouseButton.RIGHT
Yes, i find this component, but only for class Table. Can i add this component to Button?