On Wed, 21 Jan 2026 20:31:40 GMT, Andy Goryachev <[email protected]> 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)`. Yes, and that brings in `Stage` into the API of `AttachedProperty`, where it doesn't belong. But I think I'm not even clear on what you are proposing here. This PR does two things: 1. It adds the `ReadOnlyProperty.getDeclaringClass()` method. 2. It adds the `AttachedProperty` interface, which property classes can implement. It seems like you don't object to the first addition, but only to the second addition. But what exactly does your proposed code do, then: Set<AttachedProperty> props = AttachedProperty.from(node); What are these `AttachedProperty` objects that I can get from a node? They can't be the actual `Property` instances, as that's what you're objecting to. What can I do with these objects? ------------- PR Comment: https://git.openjdk.org/jfx/pull/2015#issuecomment-3781088062
