Java Code Examples for com.vaadin.ui.Window#setVisible()

The following examples show how to use com.vaadin.ui.Window#setVisible() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RolloutListHeader.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected void addNewItem(final ClickEvent event) {
    final Window addTargetWindow = addUpdateRolloutWindow.getWindow();
    UI.getCurrent().addWindow(addTargetWindow);
    addTargetWindow.setVisible(Boolean.TRUE);

}
 
Example 2
Source File: TargetTableHeader.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
@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);
}
 
Example 3
Source File: TargetDetails.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
private void openWindow() {
    final Window targetWindow = targetAddUpdateWindowLayout.getWindow(getSelectedBaseEntity().getControllerId());
    if (targetWindow == null) {
        return;
    }
    targetWindow.setCaption(getI18n().getMessage("caption.update", getI18n().getMessage("caption.target")));
    UI.getCurrent().addWindow(targetWindow);
    targetWindow.setVisible(Boolean.TRUE);
}
 
Example 4
Source File: AbstractSoftwareModuleDetails.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
@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);
}
 
Example 5
Source File: AbstractDistributionSetDetails.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected void onEdit(final ClickEvent event) {
    final Window newDistWindow = distributionAddUpdateWindowLayout
            .getWindowForUpdateDistributionSet(getSelectedBaseEntityId());
    UI.getCurrent().addWindow(newDistWindow);
    newDistWindow.setVisible(Boolean.TRUE);
}
 
Example 6
Source File: AbstractSoftwareModuleTableHeader.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected void addNewItem(final ClickEvent event) {
    final Window addSoftwareModule = softwareModuleAddUpdateWindow.createAddSoftwareModuleWindow();
    addSoftwareModule.setCaption(i18n.getMessage("caption.create.new", i18n.getMessage("caption.software.module")));
    UI.getCurrent().addWindow(addSoftwareModule);
    addSoftwareModule.setVisible(Boolean.TRUE);
}
 
Example 7
Source File: TargetTableHeader.java    From hawkbit with Eclipse Public License 1.0 4 votes vote down vote up
private void openBulkUploadWindow() {
    final Window bulkUploadTargetWindow = targetBulkUpdateWindow.getWindow();
    UI.getCurrent().addWindow(bulkUploadTargetWindow);
    bulkUploadTargetWindow.setVisible(true);
}
 
Example 8
Source File: DistributionSetTableHeader.java    From hawkbit with Eclipse Public License 1.0 4 votes vote down vote up
@Override
protected void addNewItem(final ClickEvent event) {
    final Window newDistWindow = addUpdateWindowLayout.getWindowForCreateDistributionSet();
    UI.getCurrent().addWindow(newDistWindow);
    newDistWindow.setVisible(Boolean.TRUE);
}