Impossible to implement custom control with a StyleableObjectProperty<Font> on JavaFX9

Tom Schindl tom.schindl at bestsolution.at
Wed Jan 18 23:00:39 UTC 2017


Hi,

As JavaFX9 has removed impl_reapplyCss() it is impossible for custom
controls to deal with a styleable Font-Property.

To correctly implement a Font-Property the code needs to look similar to
the one in Labeled#fontProperty. The only possibility I see implementing
such a property without providing reapplyCss() to the public is to
provide a correct implementation as part of StyleablePropertyFactory.

Tom

-- 
Thomas Schindl, CTO
BestSolution.at EDV Systemhaus GmbH
Eduard-Bodem-Gasse 5-7, A-6020 Innsbruck
http://www.bestsolution.at/
Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck


More information about the openjfx-dev mailing list