/** * Show this window. */ public void show() { this.ui.addWindow(this); }
/** * Wraps the specified {@link Window} into a UI. Adds the specified pop-up * window to a simple, empty vertical layout. * * @param window the pop-up window to wrap * @return an application displaying that pop-up window */ public UI wrapWindow(Window window) { final UI ui = wrapLayout(new VerticalLayout()); ui.addWindow(window); return ui; }
public void buttonClick(Button.ClickEvent event) { flowConfigurationImportWindow.setFlow(flow); UI.getCurrent().addWindow(flowConfigurationImportWindow); } });
public void open() { if (UI.getCurrent() != null) { UI.getCurrent().addWindow(this); } } }
@Override protected void showMetadataDetails(final String metadataKey) { targetManagement.get(selectedTargetId).ifPresent( target -> UI.getCurrent().addWindow(targetMetadataPopupLayout.getWindow(target, metadataKey))); }
@Override protected void addNewItem(final ClickEvent event) { final Window newDistWindow = addUpdateWindowLayout.getWindowForCreateDistributionSet(); UI.getCurrent().addWindow(newDistWindow); newDistWindow.setVisible(Boolean.TRUE); }
@Override protected void showMetadata(final ClickEvent event) { softwareModuleManagement.get(getSelectedBaseEntityId()) .ifPresent(swmodule -> UI.getCurrent().addWindow(swMetadataPopupLayout.getWindow(swmodule, null))); }
@Override protected void showMetadata(final ClickEvent event) { final Optional<Target> target = targetManagement.get(getSelectedBaseEntityId()); if (!target.isPresent()) { uiNotification.displayWarning(getI18n().getMessage("targets.not.exists")); return; } UI.getCurrent().addWindow(targetMetadataPopupLayout.getWindow(target.get(), null)); }
@Override public void itemClick(ItemClickEvent itemClickEvent) { if(itemClickEvent.isDoubleClick()) { GroupWindow window = new GroupWindow(userService, securityService, systemEventService, (IkasanPrincipalLite)itemClickEvent.getItemId()); UI.getCurrent().addWindow(window); } } });
@Override protected void onEdit(final ClickEvent event) { final Window newDistWindow = distributionAddUpdateWindowLayout .getWindowForUpdateDistributionSet(getSelectedBaseEntityId()); UI.getCurrent().addWindow(newDistWindow); newDistWindow.setVisible(Boolean.TRUE); }
@Override public void buttonClick(Button.ClickEvent clickEvent) { DashletConfigurationWindow configurationWindow = m_dashletSelector.getDashletFactoryForName(m_dashletSpec.getDashletName()).configurationWindow(m_dashletSpec); getUI().addWindow(configurationWindow); } });
public void buttonClick(ClickEvent event) { typeRefreshGroup.refresh(); clientRefreshGroup.refresh(); contextRefreshGroup.refresh(); UI.getCurrent().addWindow(new NewMappingConfigurationWindow(mappingConfigurationService , null, existingMappingConfigurationPanel, uiNavigator)); } });
private void copyRollout(final Long rolloutId) { final CommonDialogWindow addTargetWindow = addUpdateRolloutWindow.getWindow(rolloutId, true); addTargetWindow.setCaption(i18n.getMessage("caption.create.new", i18n.getMessage("caption.rollout"))); UI.getCurrent().addWindow(addTargetWindow); addTargetWindow.setVisible(Boolean.TRUE); }
public DialogWindow(final UI parentWindow, final String title, final String description) { this.parentWindow = parentWindow; setCaption(title); setResizable(false); setModal(true); setWidth(400, Unit.PIXELS); setContent(createContent(description)); parentWindow.addWindow(this); }
public Window buildAndOpen() { Window window = new Window(); window.setCaption(this.title); window.setContent(this.build()); window.center(); window.setModal(this.modal); UI.getCurrent().addWindow(window); return window; } }
public DialogWindow(final UI parentWindow, final String title, final String description) { this.parentWindow = parentWindow; setCaption(title); setImmediate(true); setResizable(false); setModal(true); setWidth(400, Unit.PIXELS); setContent(createContent(description)); parentWindow.addWindow(this); }
@Override protected void addNewItem(final ClickEvent event) { targetAddUpdateWindow.resetComponents(); final Window addTargetWindow = targetAddUpdateWindow.createNewWindow(); addTargetWindow.setCaption(i18n.getMessage("caption.create.new", i18n.getMessage("caption.target"))); UI.getCurrent().addWindow(addTargetWindow); addTargetWindow.setVisible(Boolean.TRUE); }
@Override protected void onEdit(final ClickEvent event) { final Window addSoftwareModule = softwareModuleAddUpdateWindow .createUpdateSoftwareModuleWindow(getSelectedBaseEntityId()); addSoftwareModule .setCaption(getI18n().getMessage("caption.update", getI18n().getMessage("caption.software.module"))); UI.getCurrent().addWindow(addSoftwareModule); addSoftwareModule.setVisible(Boolean.TRUE); }
@Override protected void onEdit(final ClickEvent event) { final Window addSoftwareModule = softwareModuleAddUpdateWindow .createUpdateSoftwareModuleWindow(getSelectedBaseEntityId()); addSoftwareModule .setCaption(getI18n().getMessage("caption.update", getI18n().getMessage("caption.software.module"))); UI.getCurrent().addWindow(addSoftwareModule); addSoftwareModule.setVisible(Boolean.TRUE); }