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

Tom Schindl tom.schindl at bestsolution.at
Fri Jan 20 08:16:12 UTC 2017


https://bugs.openjdk.java.net/browse/JDK-8102126

Tom

On 19.01.17 00:09, Jonathan Giles wrote:
> This sounds like a reasonable issue to discuss a resolution for. Can you
> please file a Jira issue and we can look into our options (either making
> a reapplyCss() method available, or following something along the lines
> of your suggestion)?
> 
> Also, thanks for taking the time to test JDK 9 - this is exactly the
> kind of feedback we need.
> 
> -- Jonathan
> 
> On 19/01/17 12:00 PM, Tom Schindl wrote:
>> 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