RFR: 8375588: Enhanced property metadata [v2]
Michael Strauß
mstrauss at openjdk.org
Wed Jan 21 20:25:05 UTC 2026
On Wed, 21 Jan 2026 17:45:35 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> What do you think of
>
> ```
> Set<AttachedProperty> props = AttachedProperty.from(node);
> ```
>
> without the Node having to implement `HasAttachedProperties` interface?
Attached properties are not exclusive to `Node`, we already have an attached property for `Stage` in JFX 26 (`HeaderBar.prefButtonHeight`). In any case, having something along the lines of `AttachedProperty.from(node)` would entangle the implementation of `Node` (and other classes) with `AttachedProperty`.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/2015#issuecomment-3780988596
More information about the openjfx-dev
mailing list