List of usage examples for com.vaadin.ui Window setSizeUndefined
@Override public void setSizeUndefined()
From source file:org.eclipse.hawkbit.ui.distributions.smtable.SwModuleDetails.java
License:Open Source License
private void showArtifactDetailsWindow(final SoftwareModule softwareModule) { final Window artifactDtlsWindow = new Window(); artifactDtlsWindow.setCaption(HawkbitCommonUtil.getArtifactoryDetailsLabelId( softwareModule.getName() + "." + softwareModule.getVersion(), getI18n())); artifactDtlsWindow.setCaptionAsHtml(true); artifactDtlsWindow.setClosable(true); artifactDtlsWindow.setResizable(true); artifactDtlsWindow.setImmediate(true); artifactDtlsWindow.setWindowMode(WindowMode.NORMAL); artifactDtlsWindow.setModal(true);//ww w. j a v a 2 s . c om artifactDtlsWindow.addStyleName(SPUIStyleDefinitions.CONFIRMATION_WINDOW_CAPTION); artifactDetailsLayout.setFullWindowMode(false); artifactDetailsLayout.populateArtifactDetails(softwareModule); artifactDetailsLayout.getArtifactDetailsTable().setWidth(700, Unit.PIXELS); artifactDetailsLayout.getArtifactDetailsTable().setHeight(500, Unit.PIXELS); artifactDtlsWindow.setContent(artifactDetailsLayout.getArtifactDetailsTable()); artifactDtlsWindow.addWindowModeChangeListener(event -> { if (event.getWindowMode() == WindowMode.MAXIMIZED) { artifactDtlsWindow.setSizeFull(); artifactDetailsLayout.setFullWindowMode(true); artifactDetailsLayout.createMaxArtifactDetailsTable(); artifactDetailsLayout.getMaxArtifactDetailsTable().setWidth(100, Unit.PERCENTAGE); artifactDetailsLayout.getMaxArtifactDetailsTable().setHeight(100, Unit.PERCENTAGE); artifactDtlsWindow.setContent(artifactDetailsLayout.getMaxArtifactDetailsTable()); } else { artifactDtlsWindow.setSizeUndefined(); artifactDtlsWindow.setContent(artifactDetailsLayout.getArtifactDetailsTable()); } }); UI.getCurrent().addWindow(artifactDtlsWindow); }
From source file:org.escidoc.browser.ui.dnd.FilesDropBox.java
License:Open Source License
private void showComponent(final Component component, final String name) { final VerticalLayout layout = new VerticalLayout(); layout.setSizeUndefined();//from w w w . j av a2s .co m layout.setMargin(true); final Window window = new Window(name, layout); window.setSizeUndefined(); component.setSizeUndefined(); window.addComponent(component); getWindow().addWindow(window); }
From source file:pl.exsio.frameset.vaadin.ui.support.component.data.common.DataComponent.java
License:Open Source License
protected Window createFormWindow(String title) { final Window formWindow = new Window(title); formWindow.center();/* w w w. j a va 2s . c om*/ formWindow.setSizeUndefined(); formWindow.setModal(true); formWindow.setResizable(false); formWindow.setDraggable(false); formWindow.setResizeLazy(false); formWindow.setStyleName("frameset-dc-window"); return formWindow; }
From source file:ru.codeinside.gses.webui.utils.Components.java
License:Mozilla Public License
public static Window createWindow(Window mainwindow, String caption) { Window subwindow = new Window(caption); subwindow.setSizeUndefined(); subwindow.getContent().setSizeUndefined(); subwindow.setScrollable(false);//from w w w. j ava2 s .c om subwindow.setResizable(false); subwindow.setPositionX(50); subwindow.setPositionY(50); mainwindow.addWindow(subwindow); return subwindow; }
From source file:ui.item.QAView.java
License:Apache License
protected void showDeleteConfirm() { ConfirmForm form = new ConfirmForm<T>(item, getList()); final Window window = new LifetimeWindow(userId, language, "Confirm Delete?"); window.setContent(form);/*from ww w . ja va 2 s.com*/ form.getCancel().addClickListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { window.close(); } }); form.getDelete().addClickListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { deleteDataFormServer(); getList().update(); window.close(); } }); window.setSizeUndefined(); getUI().addWindow(window); }
From source file:uk.q3c.krail.core.user.opt.DefaultOptionPopup.java
License:Apache License
private void calculateWindowSize(Window window, int numOfKeys) { window.setSizeUndefined(); }