I have developed Vaadin application for our book club. It's main content is a grid, displaying book information. I do have a GridContextMenu that allows to do some CRUD operation, add comments, etc. It is all working as it should, except couple little things that I am trying to fix. One of them is that multi-volume series are displayed in a single row. When I select a series for editing, I need a second step - select a volume I want to edit. The series Java class looks like this:
public class Series extends Book {
@JsonInclude(JsonInclude.Include.NON_NULL)
private List<Book> volumes;
public Series() {
super();
}
// setters and getters omitted
}
I need an advise how better implement it. Can I build something into the grid context menu or pop up another dialog box with list of volumes (ListBox or RadioButtonGroup)? In the last case, how do I return select volume book entity to the grid context menu item? Your advise will be greatly appreciated.