Mention of the CSS properties in JavaDocs

Nir Lisker nlisker at gmail.com
Sat Feb 12 18:11:46 UTC 2022


How does it handle JavaFX-specific properties? I thought that JavaFX uses a
modified javadoc tool.

On Sat, Feb 12, 2022 at 4:52 PM Kevin Rushforth <kevin.rushforth at oracle.com>
wrote:

> While something like this could be handy, I doubt that adding this much
> knowledge of JavaFX into the javadoc tool would gain any traction.
>
> -- Kevin
>
>
> On 2/9/2022 7:11 AM, Nir Lisker wrote:
> > Hi,
> >
> > When reviewing the docs changes to TabPane, I saw that some properties
> > mention the CSS that is related to them. I was wondering if we could
> > standardize it through something like a @css tag that is given the css
> > string constant, or read automatically through the CssMetaData.
> >
> > As an example:
> >
> >      /**
> >       * Specifies the maximum width of a tab.
> >       * ...
> >       * @css -fx-tab-max-width
> >       * @defaultValue 10
> >       */
> >
> > If the javadoc tool has access to these during its runtime, it can read
> the
> > string by looking in the getCssMetaData() override of the property and
> then
> > read the first argument of the CssMetaData constructor.
> >
> > Thoughts?
>
>


More information about the openjfx-dev mailing list