Event target of mouse and drag-detected events
Werner Lehmann
lehmann at media-interactive.de
Fri May 24 03:58:41 PDT 2013
Hi,
I am handling mouse and drag-detected events on a vbox to get a common
processing of the vbox children. Therefore event.source is always the
vbox (that is ok) but event.target is quite often some part of a skin, e.g.
com.sun.javafx.scene.control.skin.LabeledText
To get to the actual label control I am currently checking the parent
chain to find a Skinnable parent node, or the vbox container. If a
Skinnable was found this is the "real target". If I get to the vbox
first, I assume that event.target is what I want to use here.
This is not too complicated to do but I was wondering if this is the
best way?
Werner
More information about the openjfx-dev
mailing list