如何使用 vaadin 子窗口中的按钮隐藏顶部面板?我需要隐藏子窗口上的导航栏,在关闭按钮的位置显示什么栏。
Window window = new Window();
VerticalLayout vertical = (VerticalLayout) window.getContent();
vertical.setMargin(true);
vertical.setSpacing(true);
vertical.setSizeFull();
window.addComponent(componetn);
window.setWidth(width);
window.setHeight(heigth);
window.setResizable(false);
window.setModal(false);
window.setBorder(0);
getMainWindow().addWindow( window);