0
我想在ControlsFX中将焦点设置为PropertySheet.Item
节点(例如TextField
)。 PropertySheet Item有唯一的名称,所以我可以找到PropertySheet.Item
代码propertySheet.getItems().get(i).getName()
。但是没有API获取Node
,这对应于属性项目。我看到的唯一解决方案是walk scene graph与方法getChildrenUnmodifiable
。但是,当我穿越PropertySheet
用这种方法,它返回:将焦点设置在ControlsFX中的PropertySheet项目节点上
[email protected][styleClass=property-sheet]
[email protected]
[email protected][styleClass=tool-bar]
[email protected][styleClass=segmented-button]
[email protected]
[email protected][styleClass=toggle-button left-pill]''
我没有得到任何的PropertySheet节点,如TextField
或ComboBox
。可以做到吗?谢谢。