本文整理匯總了Java中com.vaadin.ui.Window.setVisible方法的典型用法代碼示例。如果您正苦於以下問題:Java Window.setVisible方法的具體用法?Java Window.setVisible怎麽用?Java Window.setVisible使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.vaadin.ui.Window
的用法示例。
在下文中一共展示了Window.setVisible方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: addNewItem
import com.vaadin.ui.Window; //導入方法依賴的package包/類
@Override
protected void addNewItem(final ClickEvent event) {
final Window addTargetWindow = addUpdateRolloutWindow.getWindow();
UI.getCurrent().addWindow(addTargetWindow);
addTargetWindow.setVisible(Boolean.TRUE);
}
示例2: settingsIconClicked
import com.vaadin.ui.Window; //導入方法依賴的package包/類
@Override
protected void settingsIconClicked(final ClickEvent event) {
final Window addUpdateWindow = createORUpdateDistributionTagLayout.getWindow();
UI.getCurrent().addWindow(addUpdateWindow);
addUpdateWindow.setModal(true);
addUpdateWindow.setVisible(Boolean.TRUE);
}
示例3: addNewItem
import com.vaadin.ui.Window; //導入方法依賴的package包/類
@Override
protected void addNewItem(final ClickEvent event) {
targetAddUpdateWindow.resetComponents();
final Window addTargetWindow = targetAddUpdateWindow.createNewWindow();
addTargetWindow.setCaption(i18n.getMessage(UIComponentIdProvider.TARGET_ADD_CAPTION));
UI.getCurrent().addWindow(addTargetWindow);
addTargetWindow.setVisible(Boolean.TRUE);
}
示例4: openWindow
import com.vaadin.ui.Window; //導入方法依賴的package包/類
private void openWindow() {
final Window targetWindow = targetAddUpdateWindowLayout.getWindow(getSelectedBaseEntity().getControllerId());
if (targetWindow == null) {
return;
}
targetWindow.setCaption(getI18n().getMessage(UIComponentIdProvider.TARGET_UPDATE_CAPTION));
UI.getCurrent().addWindow(targetWindow);
targetWindow.setVisible(Boolean.TRUE);
}
示例5: addNewItem
import com.vaadin.ui.Window; //導入方法依賴的package包/類
@Override
protected void addNewItem(final ClickEvent event) {
final Window newDistWindow = addUpdateWindowLayout.getWindow(null);
newDistWindow.setCaption(i18n.getMessage(UIComponentIdProvider.DIST_ADD_CAPTION));
UI.getCurrent().addWindow(newDistWindow);
newDistWindow.setVisible(Boolean.TRUE);
}
示例6: onEdit
import com.vaadin.ui.Window; //導入方法依賴的package包/類
@Override
protected void onEdit(final ClickEvent event) {
final Window addSoftwareModule = softwareModuleAddUpdateWindow
.createUpdateSoftwareModuleWindow(getSelectedBaseEntityId());
addSoftwareModule.setCaption(getI18n().getMessage("upload.caption.update.swmodule"));
UI.getCurrent().addWindow(addSoftwareModule);
addSoftwareModule.setVisible(Boolean.TRUE);
}
示例7: onEdit
import com.vaadin.ui.Window; //導入方法依賴的package包/類
@Override
protected void onEdit(final ClickEvent event) {
final Window newDistWindow = distributionAddUpdateWindowLayout.getWindow(getSelectedBaseEntityId());
newDistWindow.setCaption(getI18n().getMessage(UIComponentIdProvider.DIST_UPDATE_CAPTION));
UI.getCurrent().addWindow(newDistWindow);
newDistWindow.setVisible(Boolean.TRUE);
}
示例8: addNewItem
import com.vaadin.ui.Window; //導入方法依賴的package包/類
@Override
protected void addNewItem(final ClickEvent event) {
final Window addSoftwareModule = softwareModuleAddUpdateWindow.createAddSoftwareModuleWindow();
addSoftwareModule.setCaption(i18n.getMessage("upload.caption.add.new.swmodule"));
UI.getCurrent().addWindow(addSoftwareModule);
addSoftwareModule.setVisible(Boolean.TRUE);
}
示例9: GridContainerCSVExport
import com.vaadin.ui.Window; //導入方法依賴的package包/類
public GridContainerCSVExport(final String fileName, final Grid grid, final GridHeadingPropertySet<E> headingsSet)
{
this.grid = grid;
this.headingsSet = headingsSet;
final Window window = new Window();
window.setCaption("Download " + fileName + " CSV data");
window.center();
window.setHeight("100");
window.setWidth("300");
window.setResizable(false);
window.setModal(true);
final HorizontalLayout layout = new HorizontalLayout();
layout.setSizeFull();
layout.setMargin(true);
window.setContent(layout);
UI.getCurrent().addWindow(window);
window.setVisible(true);
final Button downloadButton = createDownloadButton(fileName, window);
layout.addComponent(downloadButton);
layout.setComponentAlignment(downloadButton, Alignment.MIDDLE_CENTER);
}
示例10: ContainerCSVExport
import com.vaadin.ui.Window; //導入方法依賴的package包/類
public ContainerCSVExport(final String fileName, final Table table, final HeadingPropertySet headingsSet)
{
this.table = table;
this.headingsSet = headingsSet;
final Window window = new Window();
window.setCaption("Download " + fileName + " CSV data");
window.center();
window.setHeight("100");
window.setWidth("300");
window.setModal(true);
HorizontalLayout layout = new HorizontalLayout();
layout.setMargin(true);
window.setContent(layout);
UI.getCurrent().addWindow(window);
window.setVisible(true);
final Button downloadButton = createDownloadButton(fileName, window);
layout.addComponent(downloadButton);
layout.setComponentAlignment(downloadButton, Alignment.MIDDLE_CENTER);
layout.addComponent(downloadButton);
}
示例11: showMailForm
import com.vaadin.ui.Window; //導入方法依賴的package包/類
private void showMailForm(final TextField emailField)
{
final Window mailWindow = new Window("Send Email");
mailWindow.setWidth("80%");
mailWindow.setHeight("80%");
final User sender = (User) getSession().getAttribute("user");
mailWindow.setContent(new EmailForm(mailWindow, sender, getCurrent(), emailField.getValue()));
mailWindow.setVisible(true);
mailWindow.center();
UI.getCurrent().addWindow(mailWindow);
}
示例12: showMailForm
import com.vaadin.ui.Window; //導入方法依賴的package包/類
private void showMailForm(EmailContact emailContact)
{
final Window mailWindow = new Window("Send Email");
mailWindow.setWidth("80%");
mailWindow.setHeight("80%");
final User sender = (User) getSession().getAttribute("user");
mailWindow.setContent(
new EmailForm(mailWindow, sender, emailContact.getContact(), emailContact.getContact().getEmail()));
mailWindow.setVisible(true);
mailWindow.center();
UI.getCurrent().addWindow(mailWindow);
}
示例13: settingsIconClicked
import com.vaadin.ui.Window; //導入方法依賴的package包/類
@Override
protected void settingsIconClicked(final ClickEvent event) {
final Window addUpdateWindow = createUpdateSWTypeLayout.getWindow();
UI.getCurrent().addWindow(addUpdateWindow);
addUpdateWindow.setVisible(Boolean.TRUE);
}
示例14: settingsIconClicked
import com.vaadin.ui.Window; //導入方法依賴的package包/類
protected void settingsIconClicked() {
final Window addUpdateWindow = createUpdateTargetTagLayout.getWindow();
UI.getCurrent().addWindow(addUpdateWindow);
addUpdateWindow.setVisible(true);
}
示例15: openBulkUploadWindow
import com.vaadin.ui.Window; //導入方法依賴的package包/類
private void openBulkUploadWindow() {
final Window bulkUploadTargetWindow = targetBulkUpdateWindow.getWindow();
UI.getCurrent().addWindow(bulkUploadTargetWindow);
bulkUploadTargetWindow.setVisible(true);
}