Vaadin using multiple context menus
问题 Im trying to create a Table with Vaadin where you have different options in the context menu depending on if you have selected a single row or multiple rows. It took me a while to do this but now i have a working solution. The problem is that is feel that its not good coding practice and I would gladly take any advice in how to perhaps split my "function" into smaller classes or functions. Could I perhaps create a standalone Action class?. Feel free to comment and advice and please do note