private void showComponent(final Component component, final String name) { final VerticalLayout layout = new VerticalLayout(); layout.setSizeUndefined(); layout.setMargin(true); final Window window = new Window(name, layout); window.setSizeUndefined(); component.setSizeUndefined(); window.addComponent(component); getWindow().addWindow(window); }
@Override public Window getWindow(String name) { Window window = super.getWindow(name); if (window == null) { window = new MainDifferWindow(); window.setSizeUndefined(); window.setName(name); addWindow(window); window.open(new ExternalResource(window.getURL())); } return window; }