|
|
|
|
|
|
|
|
|
|
|
|
|
|
grid.setDetailsGenerator(item -> { |
|
|
grid.setDetailsGenerator(item -> { |
|
|
final HorizontalLayout detailsLayout = new HorizontalLayout(); |
|
|
final HorizontalLayout detailsLayout = new HorizontalLayout(); |
|
|
|
|
|
detailsLayout.setSpacing(false); |
|
|
detailsLayout.setSizeFull(); |
|
|
detailsLayout.setSizeFull(); |
|
|
detailsLayout.setHeightUndefined(); |
|
|
detailsLayout.setHeightUndefined(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// layout2 second element of the detailsLayout, taking the rest |
|
|
// layout2 second element of the detailsLayout, taking the rest |
|
|
// of the available space |
|
|
// of the available space |
|
|
final HorizontalLayout layout2 = new HorizontalLayout(); |
|
|
final HorizontalLayout layout2 = new HorizontalLayout(); |
|
|
|
|
|
layout2.setSpacing(false); |
|
|
layout2.setSizeFull(); |
|
|
layout2.setSizeFull(); |
|
|
layout2.setHeightUndefined(); |
|
|
layout2.setHeightUndefined(); |
|
|
detailsLayout.addComponent(layout2); |
|
|
detailsLayout.addComponent(layout2); |