Is overriding requestFocus the right thing to do?
Randahl Fink Isaksen
randahl at rockit.dk
Fri Apr 19 08:50:54 PDT 2013
I have a parent with a number of children and some code which decides which one those children to give the focus to.
While some of the child components are directly focusable (TextFields) one of the children, let us call it P, is a composite Parent component with many different text fields nested inside it.
So what I have done, is to override requestFocus in P to delegate the requestFocus call to one of P's children.
This has left me uncertain whether my override (which works) is the official way to achieve what I am trying to do, or if it only works coincidentally.
If anyone could confirm that, I would be grateful. Thanks.
Randahl
More information about the openjfx-dev
mailing list