本文整理了Java中com.vaadin.ui.Window.setSizeUndefined()
方法的一些代码示例,展示了Window.setSizeUndefined()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setSizeUndefined()
方法的具体详情如下:
包路径:com.vaadin.ui.Window
类名称:Window
方法名:setSizeUndefined
暂无
代码示例来源:origin: com.vaadin/vaadin-server
/**
* Creates a new, empty window with the given content and title.
*
* @param caption
* the title of the window.
* @param content
* the contents of the window
*/
public Window(String caption, Component content) {
super(caption, content);
registerRpc(rpc);
setSizeUndefined();
setCloseShortcut(KeyCode.ESCAPE);
}
代码示例来源:origin: org.aperteworkflow/gui-commons
public static Window modalWindow(String title, ComponentContainer content) {
Window window = new Window(title, content);
window.setClosable(false);
window.setModal(true);
window.setSizeUndefined();
return window;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
/**
* Build window based on type.
*
* @return Window
*/
public Window buildWindow() {
final Window window = new Window(caption);
window.setContent(content);
window.setSizeUndefined();
window.setModal(true);
window.setResizable(false);
decorateWindow(window);
if (SPUIDefinitions.CREATE_UPDATE_WINDOW.equals(type)) {
window.setClosable(false);
}
return window;
}
}
代码示例来源:origin: eclipse/hawkbit
/**
* Build window based on type.
*
* @return Window
*/
public Window buildWindow() {
final Window window = new Window(caption);
window.setContent(content);
window.setSizeUndefined();
window.setModal(true);
window.setResizable(false);
decorateWindow(window);
if (SPUIDefinitions.CREATE_UPDATE_WINDOW.equals(type)) {
window.setClosable(false);
}
return window;
}
}
代码示例来源:origin: KrailOrg/krail
window.setModal(true);
window.setResizable(false);
window.setSizeUndefined();
代码示例来源:origin: jreznot/electron-java-app
private void onMenuAbout() {
Window helpWindow = new Window();
helpWindow.setCaption("About");
helpWindow.setModal(true);
helpWindow.setResizable(false);
helpWindow.setSizeUndefined();
VerticalLayout content = new VerticalLayout();
content.setSizeUndefined();
content.setMargin(true);
content.setSpacing(true);
Label aboutLabel = new Label("Electron+Vaadin Demo\nAuthor: Yuriy Artamonov");
aboutLabel.setContentMode(ContentMode.PREFORMATTED);
aboutLabel.setSizeUndefined();
content.addComponent(aboutLabel);
Button okBtn = new Button("Ok", VaadinIcons.CHECK);
okBtn.focus();
okBtn.addClickListener(event -> helpWindow.close());
content.addComponent(okBtn);
content.setComponentAlignment(okBtn, Alignment.MIDDLE_CENTER);
helpWindow.setContent(content);
getUI().addWindow(helpWindow);
}
代码示例来源:origin: jreznot/electron-java-app
confirmationWindow.setModal(true);
confirmationWindow.setCaption("Exit confirmation");
confirmationWindow.setSizeUndefined();
代码示例来源:origin: eclipse/hawkbit
artifactDtlsWindow.setContent(artifactDetailsLayout.getMaxArtifactDetailsTable());
} else {
artifactDtlsWindow.setSizeUndefined();
artifactDtlsWindow.setContent(artifactDetailsLayout.getArtifactDetailsTable());
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
artifactDtlsWindow.setContent(artifactDetailsLayout.getMaxArtifactDetailsTable());
} else {
artifactDtlsWindow.setSizeUndefined();
artifactDtlsWindow.setContent(artifactDetailsLayout.getArtifactDetailsTable());
内容来源于网络,如有侵权,请联系作者删除!