VWorkflows
VWorkflows copied to clipboard
Mouse Click Event ignored on Window
When retrieving a Window for a node, the mouse click event is ignored (e.g. mouse entered does its job!):
VFlow vFlow ...; VNode vNode ...;
vFlow.getNodeSkinsById(vNode.getId()).stream() .filter(s -> s instanceof FXFlowNodeSkin) .map(s -> ((FXFlowNodeSkin) s).getNode()) .forEach(window -> {
// MouseClick IGNORED!!!!
window.setOnMouseClicked(mouseEvent -> System.out.println("Clicked!"));
});
The setOnMouse...(...) methods are used internally by the JFXtras window control. This is bad design and should be fixed. Feel free to report the bug there. I'll fix it ASAP.
Workaround: use event handlers instead.
Demo Application: https://gist.github.com/miho/6fbe03741174aff3083d