Enhance the property metadata model
Kevin Rushforth
kevin.rushforth at oracle.com
Tue Dec 23 23:23:37 UTC 2025
Hi Michael,
I meant to get to this earlier, but didn't get a chance. I think this is
worth pursuing, and is something we ought to at discuss further and
perhaps consider for JavaFX 27.
What that means for your existing PR,
https://github.com/openjdk/jfx/pull/1714, is that you will either need
to also delay that to JavaFX 27 or proceed with API knowing that it will
change at least somewhat if and when we later introduce attached properties.
I'll add a comment in that PR with a couple suggestions if you want to
try to get that in for 26.
-- Kevin
On 11/7/2025 5:50 PM, Michael Strauß wrote:
> PR 1936 [0] proposes to introduce observable attached properties that
> are distinguishable from instance properties with a naming convention
> (this is also relevant for PR 1714 [1]). However, before doing this,
> we should take a step back and see if we can't do better than that and
> make attached properties more accessible in the property API.
>
> I've prepared a document that explores a few options for doing so, and
> a proposal for what I think might be a natural enhancement of the
> existing property metadata model [2].
>
> Comments are welcome.
>
> [0] https://github.com/openjdk/jfx/pull/1936
> [1] https://github.com/openjdk/jfx/pull/1714
> [2] https://gist.github.com/mstr2/2fec0303fc440b8eaeb126befc76eb5c
More information about the openjfx-dev
mailing list