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

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

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

Window.setParent介绍

暂无

代码示例

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

/**
 * Helper method to attach a window.
 *
 * @param w
 *            the window to add
 */
private void attachWindow(Window w) {
  windows.add(w);
  w.setParent(this);
  fireComponentAttachEvent(w);
  markAsDirty();
}

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

/**
 * Remove the given subwindow from this UI.
 *
 * Since Vaadin 6.5, {@link Window.CloseListener}s are called also when
 * explicitly removing a window by calling this method.
 *
 * Since Vaadin 6.5, returns a boolean indicating if the window was removed
 * or not.
 *
 * @param window
 *            Window to be removed.
 * @return true if the subwindow was removed, false otherwise
 */
public boolean removeWindow(Window window) {
  if (!windows.remove(window)) {
    // Window window is not a subwindow of this UI.
    return false;
  }
  window.setParent(null);
  markAsDirty();
  window.fireClose();
  fireComponentDetachEvent(window);
  fireWindowOrder(Collections.singletonMap(-1, window));
  return true;
}

代码示例来源:origin: org.activiti/activiti-explorer

@Override
public void setParent(Component parent) {
 super.setParent(parent);
}

相关文章

微信公众号

最新文章

更多