RFR: 8375588: Enhanced property metadata [v2]
Andy Goryachev
angorya at openjdk.org
Wed Jan 21 20:34:28 UTC 2026
On Wed, 21 Jan 2026 20:21:50 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
> Attached properties are not exclusive to `Node`, we already have an attached property for `Stage` in JFX 26 (`HeaderBar.prefButtonHeight`).
you could also have `.of(Stage)`.
> In any case, having something along the lines of `AttachedProperty.from(node)` would entangle the implementation of `Node` (and other classes) with `AttachedProperty`.
How so? In fact, it completely separates the feature from whatever carrier is used.
I really dislike this PR as it brings, in my opinion, unnecessary weight and code to the objects used everywhere for what seems to be a small side feature. I am ok with adding support to it, just not the way this PR does.
I would say `AttachedProperty.of()` or something like that way is probably the least intrusive solution that I would support.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/2015#issuecomment-3781035626
More information about the openjfx-dev
mailing list