本文整理了Java中com.vaadin.ui.Window.setParent()
方法的一些代码示例,展示了Window.setParent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setParent()
方法的具体详情如下:
包路径:com.vaadin.ui.Window
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!