本文整理了Java中javafx.stage.Window.impl_getWindows()
方法的一些代码示例,展示了Window.impl_getWindows()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.impl_getWindows()
方法的具体详情如下:
包路径:javafx.stage.Window
类名称:Window
方法名:impl_getWindows
暂无
代码示例来源:origin: org.loadui/testFx
@SuppressWarnings( "deprecation" )
public static List<Window> getWindows()
{
return Lists.reverse( Lists.newArrayList( Window.impl_getWindows() ) );
}
代码示例来源:origin: org.testfx/testfx-internal-java8
@SuppressWarnings("deprecated")
public static List<Window> getWindows() {
List<Window> windows = new ArrayList<>();
Window.impl_getWindows().forEachRemaining(windows::add);
Collections.reverse(windows);
return windows;
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
Iterator<Window> impl_getWindows = Window.impl_getWindows();
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
/**
* Find a node in all windows
*
* @param w
* the preferred window
* @param screenX
* the screen x
* @param screenY
* the screen y
* @return the node or <code>null</code>
*/
@SuppressWarnings("deprecation")
public static Node findNode(Window w, double screenX, double screenY) {
// First check the owner
if (new BoundingBox(w.getX(), w.getY(), w.getWidth(), w.getHeight()).contains(screenX, screenY)) {
return findNode(w.getScene().getRoot(), screenX, screenY);
}
// FIXME If multiple match take the closest
Iterator<Window> impl_getWindows = Window.impl_getWindows();
while (impl_getWindows.hasNext()) {
Window window = impl_getWindows.next();
if (!FIND_NODE_EXCLUDE.equals(window.getUserData()) && new BoundingBox(window.getX(), window.getY(), window.getWidth(), window.getHeight()).contains(screenX, screenY)) {
return findNode(window.getScene().getRoot(), screenX, screenY);
}
}
return null;
}
内容来源于网络,如有侵权,请联系作者删除!