當前位置: 首頁>>代碼示例>>Java>>正文


Java Window.setVisible方法代碼示例

本文整理匯總了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);

}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:8,代碼來源:RolloutListHeader.java

示例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);
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:8,代碼來源:DistributionTagHeader.java

示例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);
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:9,代碼來源:TargetTableHeader.java

示例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);
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:10,代碼來源:TargetDetails.java

示例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);
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:8,代碼來源:DistributionSetTableHeader.java

示例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);
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:9,代碼來源:AbstractSoftwareModuleDetails.java

示例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);
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:8,代碼來源:AbstractDistributionSetDetails.java

示例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);
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:8,代碼來源:AbstractSoftwareModuleTableHeader.java

示例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);
}
 
開發者ID:rlsutton1,項目名稱:VaadinUtils,代碼行數:28,代碼來源:GridContainerCSVExport.java

示例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);

}
 
開發者ID:rlsutton1,項目名稱:VaadinUtils,代碼行數:29,代碼來源:ContainerCSVExport.java

示例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);

}
 
開發者ID:bsutton,項目名稱:scoutmaster,代碼行數:13,代碼來源:ContactView.java

示例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);

}
 
開發者ID:bsutton,項目名稱:scoutmaster,代碼行數:14,代碼來源:SchoolView.java

示例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);
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:7,代碼來源:SMTypeFilterHeader.java

示例14: settingsIconClicked

import com.vaadin.ui.Window; //導入方法依賴的package包/類
protected void settingsIconClicked() {
    final Window addUpdateWindow = createUpdateTargetTagLayout.getWindow();
    UI.getCurrent().addWindow(addUpdateWindow);
    addUpdateWindow.setVisible(true);
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:6,代碼來源:MultipleTargetFilter.java

示例15: openBulkUploadWindow

import com.vaadin.ui.Window; //導入方法依賴的package包/類
private void openBulkUploadWindow() {
    final Window bulkUploadTargetWindow = targetBulkUpdateWindow.getWindow();
    UI.getCurrent().addWindow(bulkUploadTargetWindow);
    bulkUploadTargetWindow.setVisible(true);
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:6,代碼來源:TargetTableHeader.java


注:本文中的com.vaadin.ui.Window.setVisible方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。