本文整理了Java中com.vaadin.ui.UI.addWindow()
方法的一些代码示例,展示了UI.addWindow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UI.addWindow()
方法的具体详情如下:
包路径:com.vaadin.ui.UI
类名称:UI
方法名:addWindow
[英]Adds a window as a subwindow inside this UI. To open a new browser window or tab, you should instead use a UIProvider.
[中]在此UI中添加一个窗口作为子窗口。要打开新的浏览器窗口或选项卡,应改用UIProvider。
代码示例来源:origin: org.jsimpledb/jsimpledb-vaadin
/**
* Show this window.
*/
public void show() {
this.ui.addWindow(this);
}
代码示例来源:origin: com.bsb.common.vaadin/com.bsb.common.vaadin7.embed
/**
* 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;
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(Button.ClickEvent event)
{
flowConfigurationImportWindow.setFlow(flow);
UI.getCurrent().addWindow(flowConfigurationImportWindow);
}
});
代码示例来源:origin: OpenNMS/opennms
public void open() {
if (UI.getCurrent() != null) {
UI.getCurrent().addWindow(this);
}
}
}
代码示例来源:origin: eclipse/hawkbit
@Override
protected void showMetadataDetails(final String metadataKey) {
targetManagement.get(selectedTargetId).ifPresent(
target -> UI.getCurrent().addWindow(targetMetadataPopupLayout.getWindow(target, metadataKey)));
}
代码示例来源:origin: com.vaadin/vaadin-server
window.setModal(modal);
parent.addWindow(window);
window.focus();
window.setVisible(true);
window.setModal(modal);
parent.addWindow(window);
window.focus();
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
protected void addNewItem(final ClickEvent event) {
final Window newDistWindow = addUpdateWindowLayout.getWindowForCreateDistributionSet();
UI.getCurrent().addWindow(newDistWindow);
newDistWindow.setVisible(Boolean.TRUE);
}
代码示例来源:origin: eclipse/hawkbit
@Override
protected void showMetadata(final ClickEvent event) {
softwareModuleManagement.get(getSelectedBaseEntityId())
.ifPresent(swmodule -> UI.getCurrent().addWindow(swMetadataPopupLayout.getWindow(swmodule, null)));
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@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));
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
@Override
public void itemClick(ItemClickEvent itemClickEvent)
{
if(itemClickEvent.isDoubleClick())
{
GroupWindow window = new GroupWindow(userService, securityService, systemEventService, (IkasanPrincipalLite)itemClickEvent.getItemId());
UI.getCurrent().addWindow(window);
}
}
});
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
protected void onEdit(final ClickEvent event) {
final Window newDistWindow = distributionAddUpdateWindowLayout
.getWindowForUpdateDistributionSet(getSelectedBaseEntityId());
UI.getCurrent().addWindow(newDistWindow);
newDistWindow.setVisible(Boolean.TRUE);
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void buttonClick(Button.ClickEvent clickEvent) {
DashletConfigurationWindow configurationWindow = m_dashletSelector.getDashletFactoryForName(m_dashletSpec.getDashletName()).configurationWindow(m_dashletSpec);
getUI().addWindow(configurationWindow);
}
});
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
typeRefreshGroup.refresh();
clientRefreshGroup.refresh();
contextRefreshGroup.refresh();
UI.getCurrent().addWindow(new NewMappingConfigurationWindow(mappingConfigurationService
, null, existingMappingConfigurationPanel, uiNavigator));
}
});
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
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);
}
代码示例来源:origin: OpenNMS/opennms
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);
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-framework
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;
}
}
代码示例来源:origin: org.opennms.features.topology/api
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);
}
代码示例来源:origin: eclipse/hawkbit
@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);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@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);
}
代码示例来源:origin: eclipse/hawkbit
@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);
}
内容来源于网络,如有侵权,请联系作者删除!