On Tue, 20 Jan 2026 21:53:57 GMT, Andy Goryachev <[email protected]> wrote:

> So, if I understand it correctly, the proposal is to add two-tiered styleable 
> properties? Are there limitations as to which attached property is legal for 
> which node, or any attached property (including custom) can be attached to 
> any node? I understand that CSS part is not there yet, but perhaps this PR 
> should instead go via `HasAttachedProperties` route?

It's not really two-tiered, or I am unsure what you mean by that.  The 
properties are just coming from the container as a source, but they are still 
first class properties in all other respects.

There aren't any limitations what a container could have as an attached 
property; the properties are container type specific, and other container types 
cannot accidentally get confused by them -- although we could perhaps share a 
few common property types among FX's containers; margin might be a good example 
(other frameworks also do this kind of sharing).  So if you moved a node from 
GridPane to HBox, you wouldn't need to set the margin again, but may have to 
adjust container specific properties.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2015#issuecomment-3775186239

Reply via email to