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

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

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

Window.close介绍

[英]Method that handles window closing (from UI).

By default, windows are removed from their respective UIs and thus visually closed on browser-side.

To react to a window being closed (after it is closed), register a CloseListener.
[中]处理窗口关闭(从UI)的方法。
默认情况下,窗口将从各自的UI中删除,从而在浏览器端可视地关闭。
要对关闭的窗口做出反应(关闭后),请注册CloseListener。

代码示例

代码示例来源:origin: com.vaadin/vaadin-server

@Override
public void handleAction(Object sender, Object target) {
  if (window.isClosable()) {
    window.close();
  }
}

代码示例来源:origin: com.vaadin/vaadin-server

close();

代码示例来源:origin: org.opencms/opencms-core

/**
 * Closes the principal select dialog window if present.<p>
 */
protected void closeWindow() {
  if (m_window != null) {
    m_window.close();
    m_window = null;
  }
}

代码示例来源:origin: org.opencms/opencms-core

/**
 * Closes the dialog window.<p>
 */
public void closeWindow() {
  if (m_window != null) {
    m_window.close();
    m_window = null;
  }
}

代码示例来源:origin: apache/ace

@Override
protected void close() {
  try {
    m_userDTO = null;
  }
  finally {
    super.close();
  }
}

代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin

public static boolean closeDialog(AbstractComponent component) {
  while (component != null) {
    if (component instanceof Window) {
      ((Window)component).close();
      return true;
    }
  }
  return false;
}

代码示例来源:origin: stackoverflow.com

ExtElement extElement = Ext.get("myWindow");
if (extElement != null && Ext.getCmp(extElement) != null
  && Ext.getCmp(extElement) instanceof Window) {
  Window window = (Window) Ext.getCmp(extElement);
  window.close();
}

代码示例来源:origin: viritin/viritin

/**
 * If the form is opened into a popup window using openInModalPopup(), you
 * you can use this method to close the popup.
 */
public void closePopup() {
  if (popup != null) {
    popup.close();
    popup = null;
  }
}

代码示例来源:origin: org.opencms/opencms-core

/**
 * Called on dialog close.<p>
 */
void onClose() {
  if (m_onClose != null) {
    m_onClose.run();
  }
  if (m_window != null) {
    m_window.close();
  }
}

代码示例来源:origin: org.opencms/opencms-core

public void buttonClick(ClickEvent event) {
    window.close();
    if (callback != null) {
      callback.run();
    }
  }
});

代码示例来源:origin: org.opencms/opencms-core

public void run() {
    if (cancelAction != null) {
      cancelAction.run();
    }
    window.close();
  }
});

代码示例来源:origin: org.opencms/opencms-core

public void onSelection(CmsResource selected) {
    setResourceValue(selected);
    window.close();
  }
});

代码示例来源:origin: org.opencms/opencms-core

/**
 * Closes all opened dialog windows.<p>
 */
public void closeWindows() {
  for (Window window : getWindows()) {
    window.close();
  }
}

代码示例来源:origin: org.opencms/opencms-core

public void run() {
    window.close();
    cancel();
  }
});

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

@Override
public void close() {
  super.close();
  orginalValues.clear();
  removeListeners();
  allComponents.clear();
  this.saveButton.setEnabled(false);
}

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

private void closePopup() {
  clearPreviousSessionData();
  bulkUploadWindow.close();
  eventBus.publish(this, BulkUploadPopupEvent.CLOSED);
}

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

private void minimizeWindow() {
  bulkUploadWindow.close();
  managementUIState.setBulkUploadWindowMinimised(true);
  eventBus.publish(this, BulkUploadPopupEvent.MINIMIZED);
}

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

private void closePopup() {
  clearPreviousSessionData();
  bulkUploadWindow.close();
  eventBus.publish(this, BulkUploadPopupEvent.CLOSED);
}

代码示例来源:origin: viritin/viritin

public void closePopup() {
  if (getPopup() != null) {
    getPopup().close();
  }
}

代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin

public void close() {
  m_maduraFieldGroup.destroy();
  getMaduraSessionManager().getValidationSession().unbindAll();
  getMaduraSessionManager().close();
  super.close();
}

相关文章