Could it be done with annotations alone? CssMetaData requires the following: - property name - object type - converter - initial value - inherits - list of sub-properties (of type List<CssMetaData<? extends Styleable, ?>>) see Region
But, if it is indeed possible, it would be a very good solution. -andy From: openjfx-dev <[email protected]> on behalf of Michael Strauß <[email protected]> Date: Thursday, December 7, 2023 at 14:51 To: Cc: openjfx-dev <[email protected]> Subject: Re: Reflective discovery of styleable properties We could also use reflection in combination with annotations. You'd need to annotate every CSS-styleable property (a simple @Styleable annotation would suffice), and at runtime we can discover the annotated methods and reflect their metadata. This solves the problem that automatic styleable property discovery might be surprising for developers.
