public void select(final Object state) {
if (!isShowing()) {
mouse().click();
}
Parent<Node> popupContainer =
Root.ROOT.lookup(new ByWindowType<>(PopupWindow.class)).as(Parent.class, Node.class);
// TODO: figure out what to do with duplicate strings
popupContainer.lookup(Node.class, cntrl -> {
MenuItem item = (MenuItem) cntrl.getProperties().get(MenuItem.class);
if (item == null) {
return false;
}
;
if (!item.getText().contentEquals(state.toString())) {
return false;
}
return true;
}).wrap().mouse().click();
}
ChoiceBoxWrap.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:openjfx-8u-dev-tests
作者:
评论列表
文章目录