com.vaadin.ui.Window.setVisible()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(165)

本文整理了Java中com.vaadin.ui.Window.setVisible()方法的一些代码示例,展示了Window.setVisible()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setVisible()方法的具体详情如下:
包路径:com.vaadin.ui.Window
类名称:Window
方法名:setVisible

Window.setVisible介绍

暂无

代码示例

代码示例来源:origin: net.sf.itcb.common/itcb-common-web-vaadin

@Override
public void displayPreviousPage() {
  if(currentPageRef != null) {
    displayPage(currentPageRef, ReloadOrder.FALSE);
  }
  else {
    window.setVisible(false);
  }
}

代码示例来源:origin: OpenNMS/opennms

@Override
  public void setVisible(boolean visible) {
    super.setVisible(visible);
    if (!visible) {
      noDefaultsAvailable.setVisible(false);
    } else {
      center();
    }
  }
}

代码示例来源:origin: OpenNMS/opennms

private void addNoContentWindow() {
  m_noContentWindow = new NoContentAvailableWindow(m_graphContainer);
  m_noContentWindow.setVisible(true);
  addWindow(m_noContentWindow);
}

代码示例来源:origin: org.opennms.features.topology/org.opennms.features.topology.app

@Override
  public void setVisible(boolean visible) {
    super.setVisible(visible);
    if (!visible) {
      noDefaultsAvailable.setVisible(false);
    } else {
      center();
    }
  }
}

代码示例来源:origin: org.opennms.features.topology/org.opennms.features.topology.app

private void addNoContentWindow() {
  m_noContentWindow = new NoContentAvailableWindow(m_graphContainer);
  m_noContentWindow.setVisible(true);
  addWindow(m_noContentWindow);
}

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

@Override
protected void addNewItem(final ClickEvent event) {
  final Window addTargetWindow = addUpdateRolloutWindow.getWindow();
  UI.getCurrent().addWindow(addTargetWindow);
  addTargetWindow.setVisible(Boolean.TRUE);
}

代码示例来源:origin: eclipse/hawkbit

private void openBulkUploadWindow() {
  final Window bulkUploadTargetWindow = targetBulkUpdateWindow.getWindow();
  UI.getCurrent().addWindow(bulkUploadTargetWindow);
  bulkUploadTargetWindow.setVisible(true);
}

代码示例来源:origin: eclipse/hawkbit

@Override
protected void addNewItem(final ClickEvent event) {
  final Window addTargetWindow = addUpdateRolloutWindow.getWindow();
  UI.getCurrent().addWindow(addTargetWindow);
  addTargetWindow.setVisible(Boolean.TRUE);
}

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

private void openBulkUploadWindow() {
  final Window bulkUploadTargetWindow = targetBulkUpdateWindow.getWindow();
  UI.getCurrent().addWindow(bulkUploadTargetWindow);
  bulkUploadTargetWindow.setVisible(true);
}

代码示例来源: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 addNewItem(final ClickEvent event) {
  final Window newDistWindow = addUpdateWindowLayout.getWindowForCreateDistributionSet();
  UI.getCurrent().addWindow(newDistWindow);
  newDistWindow.setVisible(Boolean.TRUE);
}

代码示例来源:origin: eclipse/hawkbit

@Override
protected void onEdit(final ClickEvent event) {
  final Window newDistWindow = distributionAddUpdateWindowLayout
      .getWindowForUpdateDistributionSet(getSelectedBaseEntityId());
  UI.getCurrent().addWindow(newDistWindow);
  newDistWindow.setVisible(Boolean.TRUE);
}

代码示例来源: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: org.eclipse.hawkbit/hawkbit-ui

@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);
}

代码示例来源:origin: eclipse/hawkbit

@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);
}

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

@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);
}

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

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);
}

代码示例来源:origin: eclipse/hawkbit

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);
}

相关文章